This commit is contained in:
Andrew Kingston 2024-10-11 16:47:21 +01:00
parent 97cee504f0
commit 1cbe1b4a0b
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -49,13 +49,12 @@
import OptionsEditor from "./OptionsEditor.svelte" import OptionsEditor from "./OptionsEditor.svelte"
import { isEnabled } from "helpers/featureFlags" import { isEnabled } from "helpers/featureFlags"
import { getUserBindings } from "dataBinding" import { getUserBindings } from "dataBinding"
import { makePropSafe as safe } from "@budibase/string-templates"
export let field export let field
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
const { dispatch: gridDispatch, rows } = getContext("grid") const { dispatch: gridDispatch, rows } = getContext("grid")
const SafeID = `${safe("user")}.${safe("_id")}` const SafeID = `${makePropSafe("user")}.${makePropSafe("_id")}`
const SingleUserDefault = `{{ ${SafeID} }}` const SingleUserDefault = `{{ ${SafeID} }}`
const MultiUserDefault = `{{ js "${btoa(`return [$("${SafeID}")]`)}" }}` const MultiUserDefault = `{{ js "${btoa(`return [$("${SafeID}")]`)}" }}`