Skip to content

Commit 7184823

Browse files
Attribute Calculation Read-Only Mode
1 parent 9444f7e commit 7184823

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/projects/projectId/attributes/attributeId/AttributeCalculations.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ export default function AttributeCalculation() {
112112
if (currentAttribute.state == AttributeState.USABLE || currentAttribute.state == AttributeState.RUNNING) {
113113
setEditorOptions({ ...EDITOR_OPTIONS, readOnly: true });
114114
setCheckUnsavedChanges(false);
115+
} else {
116+
setEditorOptions({ ...EDITOR_OPTIONS, readOnly: false });
115117
}
116118
setAttributeName(currentAttribute.name);
117119
}, [currentAttribute]);

0 commit comments

Comments
 (0)