Fix relationship paths not using correct readable and runtime bindings in server binding panel

This commit is contained in:
Andrew Kingston 2021-11-24 08:44:12 +00:00
parent e65bfe5b9a
commit 6e85a90a31
1 changed files with 3 additions and 2 deletions

View File

@ -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>