Skip to content

Commit cade930

Browse files
committed
add getSchemaForNewTypes tests
1 parent 0d367ed commit cade930

File tree

3 files changed

+314
-58
lines changed

3 files changed

+314
-58
lines changed

packages/compass-data-modeling/src/store/diagram.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ export function changeFieldType(
703703
fieldPath: fieldPath,
704704
});
705705
if (!field) throw new Error('Field not found in schema');
706-
const to = getSchemaForNewTypes(field, newTypes);
706+
const to = getSchemaForNewTypes(field.jsonSchema, newTypes);
707707
dispatch(
708708
applyEdit({
709709
type: 'ChangeFieldType',

0 commit comments

Comments
 (0)