@yimingliao/cms 0.0.79 → 0.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -227,8 +227,8 @@ function createAdminInitializer({
227
227
  }
228
228
  );
229
229
  useEffect(() => {
230
- if (isFetching || !admin) return;
231
- setAdmin(admin);
230
+ if (isFetching) return;
231
+ if (admin) setAdmin(admin);
232
232
  setIsLoading(false);
233
233
  }, [isFetching, admin, setAdmin, setIsLoading]);
234
234
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yimingliao/cms",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "author": "Yiming Liao",
5
5
  "license": "MIT",
6
6
  "type": "module",