Skip to content

Commit

Permalink
[dagit] Avoid resetting hidden repos on each page load #7519 (#7520)
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Apr 21, 2022
1 parent d7ff7bc commit f5bdb5e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ const useVisibleRepos = (

// TODO: Remove this logic eventually...
const migratedOldHiddenKeys = React.useRef(false);
if (oldHiddenKeys && !migratedOldHiddenKeys.current) {
if (oldHiddenKeys.length && !migratedOldHiddenKeys.current) {
setHiddenKeys(oldHiddenKeys);
setOldHiddenKeys(undefined);
migratedOldHiddenKeys.current = true;
Expand Down

0 comments on commit f5bdb5e

Please sign in to comment.