Skip to content

Commit 96d520e

Browse files
authored
fix: update save logic in FieldSetting component to check operator before confirming (#1660)
1 parent 6d1883f commit 96d520e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/nextjs-app/src/features/app/components/field-setting/FieldSetting.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const FieldSettingBase = (props: IFieldSettingBase) => {
211211
};
212212

213213
const onSave = async () => {
214-
if (!updateCount) {
214+
if (operator === FieldOperator.Edit && !updateCount) {
215215
onConfirm?.();
216216
return;
217217
}

0 commit comments

Comments
 (0)