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
1 changed files with 4 additions and 0 deletions

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