Compare commits

...

1 Commits

Author SHA1 Message Date
Patrik Kozak
8798a73f94 fix: passes onSave to DocumentDrawer in multi-value label for relationship field 2024-07-17 20:38:07 -04:00

View File

@@ -24,7 +24,8 @@ export const MultiValueLabel: React.FC<MultiValueProps<Option>> = (props) => {
draggableProps,
// @ts-expect-error // TODO Fix this - moduleResolution 16 breaks our declare module
setDrawerIsOpen,
// onSave,
// @ts-expect-error // TODO Fix this - moduleResolution 16 breaks our declare module
onSave,
} = {},
} = {},
} = props
@@ -70,7 +71,7 @@ export const MultiValueLabel: React.FC<MultiValueProps<Option>> = (props) => {
</Tooltip>
<Edit />
</DocumentDrawerToggler>
<DocumentDrawer onSave={/* onSave */ null} />
<DocumentDrawer onSave={onSave} />
</Fragment>
)}
</div>