lyndsiWilliams commented on code in PR #22610: URL: https://github.com/apache/superset/pull/22610#discussion_r1068551394
########## superset-frontend/src/views/CRUD/data/dataset/AddDataset/LeftPanel/index.tsx: ########## @@ -211,6 +213,16 @@ export default function LeftPanel({ const encodedSchema = schema ? encodeURIComponent(schema) : undefined; + useEffect(() => { + const currentUserSelectedDb = getItem( + LocalStorageKeys.db, + null, + ) as DatabaseObject; + if (currentUserSelectedDb) { + setDatabase(currentUserSelectedDb); + } + }, []); Review Comment: Thanks for explaining this to me! I didn't realize the warnings were that dangerous, I'll watch out for these going forward. Fixed in [`this commit`](https://github.com/apache/superset/pull/22610/commits/a72d05829371f6a375e165dd2d3739474587fa63). -- 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. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org