Skip to content

Commit cd9353d

Browse files
SludgeGirlNykseli
authored andcommitted
Fix: on superuser status is changed we should retry loading subscriptions
1 parent 7bb4846 commit cd9353d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/app.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,13 @@ export const Application = () => {
9696
});
9797
}, [backend, setLoadingSubscriptions, setSubscriptions, setUnregisteredSubscriptions, setLoadingExtensions, errors]);
9898

99+
useEffect(() => {
100+
if (isSuperuser) {
101+
setErrors([]);
102+
updateSubscriptions();
103+
}
104+
}, [isSuperuser]);
105+
99106
useEffect(() => {
100107
if (!loadedSubscriptions && backend !== null) {
101108
setLoadedSubscriptions(true);

0 commit comments

Comments
 (0)