We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2f6633 commit b7b7a83Copy full SHA for b7b7a83
front/src/applications/editor/components/LinearMetadata/FormComponent.tsx
@@ -173,6 +173,13 @@ export const FormComponent: React.FC<FieldProps> = (props) => {
173
// case when you click on the already selected item => reset
174
setSelected((old) => ((old ?? -1) === index ? null : index));
175
setHovered(null);
176
+ if (valueField && isNil(_item[valueField]) && isNil(selected)) {
177
+ fixedData[index] = {
178
+ ..._item,
179
+ [valueField]: 0,
180
+ }
181
+ onChange(fixedData)
182
183
}
184
setClickPrevent(false);
185
}, 150) as number;
0 commit comments