Fix relationship paths not using correct readable and runtime bindings in server binding panel
This commit is contained in:
parent
e65bfe5b9a
commit
6e85a90a31
|
@ -1,5 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import BindingPanel from "./BindingPanel.svelte"
|
import BindingPanel from "./BindingPanel.svelte"
|
||||||
|
import { makePropSafe } from "@budibase/string-templates"
|
||||||
|
|
||||||
export let bindings = []
|
export let bindings = []
|
||||||
export let valid
|
export let valid
|
||||||
|
@ -12,8 +13,8 @@
|
||||||
const enrichBindings = bindings => {
|
const enrichBindings = bindings => {
|
||||||
return bindings?.map(binding => ({
|
return bindings?.map(binding => ({
|
||||||
...binding,
|
...binding,
|
||||||
readableBinding: binding.readableBinding || binding.label,
|
readableBinding: binding.label || binding.readableBinding,
|
||||||
runtimeBinding: binding.runtimeBinding || binding.path,
|
runtimeBinding: binding.path || binding.runtimeBinding,
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue