now possible to navigate directly to a datasource

This commit is contained in:
Keviin Åberg Kultalahti 2021-03-15 10:18:23 +01:00
parent ec46fdcbf5
commit 6c3d4b47f5
2 changed files with 13 additions and 1183 deletions

View File

@ -2,12 +2,12 @@
import { params } from "@sveltech/routify"
import { backendUiStore } from "builderStore"
if ($params.selectedDatasourceId) {
if ($params.selectedDatasource) {
const datasource = $backendUiStore.datasources.find(
m => m._id === $params.selectedDatasource
)
if (datasource) {
backendUiStore.actions.datasources.select(datasource)
backendUiStore.actions.datasources.select(datasource._id)
}
}
</script>

File diff suppressed because it is too large Load Diff