fix storage hook

This commit is contained in:
Gabe Yuan
2023-09-17 21:50:17 +08:00
parent 8935ced75a
commit 1553559b1a
4 changed files with 35 additions and 20 deletions

View File

@@ -526,6 +526,10 @@ function UserRules({ subRules }) {
}
}, [showAdd]);
if (!rules.list) {
return;
}
return (
<Stack spacing={3}>
<Stack

View File

@@ -44,6 +44,10 @@ export default function SyncSetting() {
}
};
if (!sync) {
return;
}
const { syncUrl = "", syncKey = "" } = sync;
return (