diff --git a/src/components/diagram_overview.jsx b/src/components/diagram_overview.jsx index db2d9f1..184ead0 100644 --- a/src/components/diagram_overview.jsx +++ b/src/components/diagram_overview.jsx @@ -333,10 +333,28 @@ export default function DiagramOverview(props) { > -
+ { + const updatedTables = [...props.tables]; + updatedTables[i] = { + ...t, + ...value.values, + }; + props.setTables(updatedTables); + }} + > { + const updatedTables = [...props.tables]; + updatedTables[i] = { + ...t, + comment: "", + }; + props.setTables(updatedTables); + }} initValue={t.comment} autosize placeholder="Add comment"