etr2460 commented on a change in pull request #11838:
URL:
https://github.com/apache/incubator-superset/pull/11838#discussion_r532353222
##########
File path: superset-frontend/src/setup/setupClient.ts
##########
@@ -21,13 +21,17 @@ import parseCookie from 'src/utils/parseCookie';
export default function setupClient() {
const csrfNode = document.querySelector('#csrf_token');
- const csrfToken = csrfNode ? csrfNode.value : null;
+ const csrfToken = csrfNode
+ ? (csrfNode as Element & { value: string }).value
Review comment:
good call, updated!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]