From 5b1bbad6c6f5804cd4d56bf81eb437b75962969d Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Fri, 21 Feb 2020 15:39:56 +0000 Subject: [PATCH] bugfix: binding broken in propertycascader --- packages/builder/src/common/binding.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/builder/src/common/binding.js b/packages/builder/src/common/binding.js index f701a2b577..af04397327 100644 --- a/packages/builder/src/common/binding.js +++ b/packages/builder/src/common/binding.js @@ -17,6 +17,15 @@ export const setBinding = ({ path, fallback, source }, binding = {}) => { return binding } -export const getBinding = parseBinding +export const getBinding = val => { + const binding = parseBinding(val) + return binding + ? binding + : { + path: "", + source: "store", + fallback: "", + } +} const isNonEmptyString = s => isString(s) && s.length > 0