We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9df18ec commit 9fe82b1Copy full SHA for 9fe82b1
src/components/EditorCanvas/Table.jsx
@@ -434,7 +434,11 @@ export default function Table({
434
backgroundColor: "#d42020b3",
435
}}
436
icon={<IconMinus />}
437
- onClick={() => deleteField(fieldData, tableData.id)}
+ disabled={layout.readOnly}
438
+ onClick={() => {
439
+ if (layout.readOnly) return;
440
+ deleteField(fieldData, tableData.id);
441
+ }}
442
/>
443
) : settings.showDataTypes ? (
444
<div className="flex gap-1 items-center">
0 commit comments