Skip to content

Commit

Permalink
fix: optimal alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
m1666 committed Feb 25, 2022
1 parent 90d0b6b commit 7ecc450
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,20 +184,17 @@ const CreatedAndUpdatedModal = ({
useEffect(() => {
if (visible && modalForm.current) {
doGetDatabaseList();
console.log("operations: ", operations);
if (operations.selectDid) {
modalForm.current.setFieldsValue({ databaseId: operations.selectDid });
getLogLibraries.run(operations.selectDid);
handleChangeDisable(true);
}
if (operations.selectTid)
modalForm.current.setFieldsValue({ tableId: operations.selectDid });
modalForm.current.setFieldsValue({ tableId: operations.selectTid });
}
}, [visible, operations.selectDid, operations.selectTid]);

useEffect(() => {
if (visible && modalForm.current) {
}
}, [visible]);

useEffect(() => {
if (!visible && modalForm.current) {
modalForm.current.resetFields();
Expand Down

0 comments on commit 7ecc450

Please sign in to comment.