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

10 lines
232 B
JavaScript

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)
}