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 {
2727} from '../services/open-and-download-diagram' ;
2828import type { MongoDBJSONSchema } from 'mongodb-schema' ;
2929import { 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' ;
3431import toNS from 'mongodb-ns' ;
3532import { traverseSchema } from '../utils/schema-traversal' ;
3633import { addFieldToJSONSchema , getNewUnusedFieldName } from '../utils/schema' ;
@@ -387,6 +384,13 @@ const updateSelectedItemsFromAppliedEdit = (
387384 id : edit . ns ,
388385 } ;
389386 }
387+ case 'AddField' : {
388+ return {
389+ type : 'field' ,
390+ namespace : edit . ns ,
391+ fieldPath : edit . field ,
392+ } ;
393+ }
390394 }
391395
392396 return currentSelection ;
You can’t perform that action at this time.
0 commit comments