Skip to content

Commit c72e780

Browse files
committed
StatsHouse UI: fix disable param for meta metric
1 parent 6ae1e39 commit c72e780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statshouse-ui/src/admin/pages/FormPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ export function EditForm(props: { isReadonly: boolean; adminMode: boolean; isHis
458458
name="visible"
459459
type="checkbox"
460460
className="form-check-input"
461-
checked={values.visible || !values.disable}
461+
checked={values.visible}
462462
onChange={(e) => dispatch({ visible: e.target.checked, disable: !e.target.checked })}
463463
disabled={isReadonly}
464464
/>

0 commit comments

Comments
 (0)