1
0
Fork 0
mirror of synced 2024-09-14 00:08:25 +12:00
budibase/packages/client/src/utils/linkable.js

11 lines
232 B
JavaScript
Raw Normal View History

import { get } from "svelte/store"
import { link } from "svelte-spa-router"
import { builderStore } from "../store"
export const linkable = (node, href) => {
if (get(builderStore).inBuilder) {
return
}
link(node, href)
}