1
0
Fork 0
mirror of synced 2024-10-05 12:34:50 +13:00

Refresh tables list when some other user adds a datasource

This commit is contained in:
Andrew Kingston 2023-06-15 09:39:27 +01:00
parent 9e535a1ca4
commit f2ce876c5f

View file

@ -113,6 +113,10 @@ export function createDatasourcesStore() {
...state,
list: [...state.list, datasource],
}))
// If this is a new datasource then we should refresh the tables list,
// because otherwise we'll never see the new tables
tables.fetch()
}
// Update existing datasource