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