File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
packages/compass-data-modeling/src/store Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,7 @@ import {
27
27
} from '../services/open-and-download-diagram' ;
28
28
import type { MongoDBJSONSchema } from 'mongodb-schema' ;
29
29
import { getCoordinatesForNewNode } from '@mongodb-js/diagramming' ;
30
- import {
31
- collectionToBaseNodeForLayout ,
32
- collectionToDiagramNode ,
33
- } from '../utils/nodes-and-edges' ;
30
+ import { collectionToBaseNodeForLayout } from '../utils/nodes-and-edges' ;
34
31
import toNS from 'mongodb-ns' ;
35
32
import { traverseSchema } from '../utils/schema-traversal' ;
36
33
import { addFieldToJSONSchema , getNewUnusedFieldName } from '../utils/schema' ;
@@ -387,6 +384,13 @@ const updateSelectedItemsFromAppliedEdit = (
387
384
id : edit . ns ,
388
385
} ;
389
386
}
387
+ case 'AddField' : {
388
+ return {
389
+ type : 'field' ,
390
+ namespace : edit . ns ,
391
+ fieldPath : edit . field ,
392
+ } ;
393
+ }
390
394
}
391
395
392
396
return currentSelection ;
You can’t perform that action at this time.
0 commit comments