Skip to content

Commit c5b15da

Browse files
authored
fix: don't delete the property if it shouldn't be allowed (#1633)
1 parent ddc99d6 commit c5b15da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/app_flowy/lib/plugins/grid/presentation/widgets/header/field_editor.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,9 @@ class _DeleteFieldButton extends StatelessWidget {
218218
LocaleKeys.grid_field_delete.tr(),
219219
color: enable ? null : Theme.of(context).disabledColor,
220220
),
221-
onTap: () => onDeleted?.call(),
221+
onTap: () {
222+
if (enable) onDeleted?.call();
223+
},
222224
onHover: (_) => popoverMutex.close(),
223225
);
224226
return Padding(

0 commit comments

Comments
 (0)