@firecms/core 3.0.0-canary.92 → 3.0.0-canary.94

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@firecms/core",
3
3
  "type": "module",
4
- "version": "3.0.0-canary.92",
4
+ "version": "3.0.0-canary.94",
5
5
  "description": "Awesome Firebase/Firestore-based headless open-source CMS",
6
6
  "funding": {
7
7
  "url": "https://github.com/sponsors/firecmsco"
@@ -46,9 +46,8 @@
46
46
  "./package.json": "./package.json"
47
47
  },
48
48
  "dependencies": {
49
- "@firecms/formex": "^3.0.0-canary.92",
50
- "@firecms/ui": "^3.0.0-canary.92",
51
- "@fontsource/jetbrains-mono": "^5.0.20",
49
+ "@firecms/formex": "^3.0.0-canary.94",
50
+ "@firecms/ui": "^3.0.0-canary.94",
52
51
  "@hello-pangea/dnd": "^16.6.0",
53
52
  "@radix-ui/react-portal": "^1.1.1",
54
53
  "clsx": "^2.1.1",
@@ -65,7 +64,6 @@
65
64
  "react-transition-group": "^4.4.5",
66
65
  "react-use-measure": "^2.1.1",
67
66
  "react-window": "^1.8.10",
68
- "typeface-rubik": "^1.1.13",
69
67
  "yup": "^0.32.11"
70
68
  },
71
69
  "peerDependencies": {
@@ -102,7 +100,7 @@
102
100
  "dist",
103
101
  "src"
104
102
  ],
105
- "gitHead": "9c6fcb4a58bcb8118ad47f6ab8c77536f7efc3ed",
103
+ "gitHead": "b8ffd164de526795849d098ba9a0356381f43102",
106
104
  "publishConfig": {
107
105
  "access": "public"
108
106
  },
@@ -199,7 +199,11 @@ export function useBuildNavigationController<EC extends EntityCollection, UserTy
199
199
  );
200
200
 
201
201
  let shouldUpdateTopLevelNav = false;
202
- if (!areCollectionListsEqual(collectionsRef.current ?? [], resolvedCollections) || resolvedCollections.length === 0) {
202
+ if (!areCollectionListsEqual(collectionsRef.current ?? [], resolvedCollections)) {
203
+ collectionsRef.current = resolvedCollections;
204
+ shouldUpdateTopLevelNav = true;
205
+ }
206
+ if (collectionsRef.current === undefined) {
203
207
  collectionsRef.current = resolvedCollections;
204
208
  shouldUpdateTopLevelNav = true;
205
209
  }