|
|
|
@ -15,6 +15,7 @@ |
|
|
|
// These maps need to be set up to handle whatever types that are used in the tables. |
|
|
|
const setters = new Map([["number", number]]) |
|
|
|
const SDK = getContext("app") |
|
|
|
const dataContext = getContext("data") |
|
|
|
const { API, styleable } = SDK |
|
|
|
|
|
|
|
export let datasource = {} |
|
|
|
@ -52,7 +53,7 @@ |
|
|
|
|
|
|
|
onMount(async () => { |
|
|
|
if (!isEmpty(datasource)) { |
|
|
|
data = await API.fetchDatasource(datasource) |
|
|
|
data = await API.fetchDatasource(datasource, $dataContext) |
|
|
|
let schema |
|
|
|
|
|
|
|
// Get schema for datasource |
|
|
|
|