mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-12-20 01:00:56 +08:00
Merge pull request #29 from HaecheonLee/bug/fix-remaining-popover-after-deleting-table
Fix to close remainig popover after deleting table
This commit is contained in:
@@ -106,6 +106,7 @@ export default function Table(props) {
|
|||||||
onClick={openEditor}
|
onClick={openEditor}
|
||||||
/>
|
/>
|
||||||
<Popover
|
<Popover
|
||||||
|
key={tableData.key}
|
||||||
content={
|
content={
|
||||||
<div className="popover-theme">
|
<div className="popover-theme">
|
||||||
<div className="mb-2">
|
<div className="mb-2">
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export default function TablesContextProvider({ children }) {
|
|||||||
comment: "",
|
comment: "",
|
||||||
indices: [],
|
indices: [],
|
||||||
color: defaultBlue,
|
color: defaultBlue,
|
||||||
|
key: Date.now(),
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user