Skip to content

Commit 4e1e0c0

Browse files
committed
Processed immediate activity in Data Sources.
1 parent 1d41e80 commit 4e1e0c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/packages/lowcoder/src/pages/datasource/datasourceList.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ export const DatasourceList = () => {
110110
const [searchValues, setSearchValues] = useState("");
111111
const [isCreateFormShow, showCreateForm] = useState(false);
112112
const [shareDatasourceId, setShareDatasourceId] = useState<string | undefined>(undefined);
113+
const [modify, setModify] = useState(false);
113114
const datasource = useSelector(getDataSource);
114115
const currentUser = useSelector(getUser);
115116
const orgId = currentUser.currentOrgId;
@@ -146,7 +147,7 @@ export const DatasourceList = () => {
146147
else
147148
console.error("ERROR: fetchFolderElements", result.error)
148149
})
149-
}, [currentPage, pageSize, searchValues]
150+
}, [currentPage, pageSize, searchValues, modify]
150151
)
151152

152153
return (
@@ -294,6 +295,10 @@ export const DatasourceList = () => {
294295
text: trans("delete"),
295296
onClick: () => {
296297
dispatch(deleteDatasource({ datasourceId: record.id }));
298+
setTimeout(() => {
299+
setModify(!modify);
300+
}, 500);
301+
297302
},
298303
type: "delete",
299304
},

0 commit comments

Comments
 (0)