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 { applyEdit as _applyEdit } from './apply-edit' ;
@@ -398,6 +395,13 @@ const updateSelectedItemsFromAppliedEdit = (
398395 ] ,
399396 } ;
400397 }
398+ case 'AddField' : {
399+ return {
400+ type : 'field' ,
401+ namespace : edit . ns ,
402+ fieldPath : edit . field ,
403+ } ;
404+ }
401405 }
402406
403407 return currentSelection ;
You can’t perform that action at this time.
0 commit comments