@@ -58,7 +58,7 @@ import CustomColorTextField from "./custom_field/CustomColorTextField";
58
58
import { booksCollection } from "./collections/books_collection" ;
59
59
import { FirebaseApp } from "@firebase/app" ;
60
60
import { TestEditorView } from "./views/TestEditorView" ;
61
- import { useCollectionEditorPlugin } from "@firecms/collection_editor" ;
61
+ import { mergeCollections , useCollectionEditorPlugin } from "@firecms/collection_editor" ;
62
62
import { useFirestoreCollectionsConfigController } from "@firecms/collection_editor_firebase" ;
63
63
import { ReCaptchaEnterpriseProvider } from "@firebase/app-check" ;
64
64
import { useExportPlugin } from "@firecms/data_export" ;
@@ -231,11 +231,11 @@ export function App() {
231
231
if ( process . env . NODE_ENV !== "production" ) {
232
232
sourceCollections . push ( testCollection ) ;
233
233
}
234
- return sourceCollections ;
235
- // return mergeCollections(
236
- // sourceCollections,
237
- // collectionConfigController.collections ?? []
238
- // )
234
+ // return sourceCollections;
235
+ return mergeCollections (
236
+ sourceCollections ,
237
+ collectionConfigController . collections ?? [ ]
238
+ ) ;
239
239
} , [ collectionConfigController . collections , secondaryFirestoreDelegate ] ) ;
240
240
241
241
const views : CMSView [ ] = useMemo ( ( ) => ( [
@@ -348,8 +348,12 @@ export function App() {
348
348
dataSourceDelegate = { firestoreDelegate }
349
349
storageSource = { storageSource }
350
350
351
- plugins = { [ userManagementPlugin , dataEnhancementPlugin , exportPlugin , demoPlugin
352
- // collectionEditorPlugin
351
+ plugins = { [
352
+ userManagementPlugin ,
353
+ dataEnhancementPlugin ,
354
+ exportPlugin ,
355
+ demoPlugin ,
356
+ collectionEditorPlugin
353
357
] }
354
358
onAnalyticsEvent = { onAnalyticsEvent }
355
359
propertyConfigs = { propertyConfigs }
0 commit comments