Use named export for tableCache
This commit is contained in:
parent
9d8cbaedbb
commit
edc11bf7bb
|
@ -1,7 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
import api from "../../api"
|
import api from "../../api"
|
||||||
import getTable from "./tableCache"
|
import { getTable } from "./tableCache"
|
||||||
|
|
||||||
export let columnName
|
export let columnName
|
||||||
export let row
|
export let row
|
||||||
|
|
|
@ -8,7 +8,7 @@ async function fetchTable(id) {
|
||||||
return await response.json()
|
return await response.json()
|
||||||
}
|
}
|
||||||
|
|
||||||
export default async function getTable(tableId) {
|
export async function getTable(tableId) {
|
||||||
if (!tableId) {
|
if (!tableId) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue