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>
import BindingPanel from "./BindingPanel.svelte"
import { makePropSafe } from "@budibase/string-templates"
export let bindings = []
export let valid
@ -12,8 +13,8 @@
const enrichBindings = bindings => {
return bindings?.map(binding => ({
...binding,
readableBinding: binding.readableBinding || binding.label,
runtimeBinding: binding.runtimeBinding || binding.path,
readableBinding: binding.label || binding.readableBinding,
runtimeBinding: binding.path || binding.runtimeBinding,
}))
}
</script>