Setup datasource type

This commit is contained in:
Adria Navarro 2023-07-19 10:14:42 +02:00
parent 9ccc54773d
commit 82ea9a7cc1
2 changed files with 10 additions and 4 deletions

View File

@ -3,11 +3,17 @@
import { Grid } from "@budibase/frontend-core"
import { API } from "api"
$: tableId = $views.selected?.id
export let id
</script>
<div class="wrapper">
<Grid {API} {tableId} datasourceType="view" showAvatars={false} />
<Grid
{API}
tableId={id}
datasourceType="viewV2"
showAvatars={false}
showControls={false}
/>
</div>
<style>

View File

@ -60,7 +60,6 @@ export const deriveStores = context => {
loading,
sort,
tableId,
datasourceType,
API,
scroll,
validation,
@ -72,6 +71,7 @@ export const deriveStores = context => {
hasNextPage,
error,
notifications,
props,
} = context
const instanceLoaded = writable(false)
const fetch = writable(null)
@ -112,7 +112,7 @@ export const deriveStores = context => {
const newFetch = fetchData({
API,
datasource: {
type: datasourceType,
type: props.datasourceType,
tableId: $tableId,
},
options: {