bugfix: binding broken in propertycascader

This commit is contained in:
Michael Shanks 2020-02-21 15:39:56 +00:00
parent b4eb26b2f1
commit 5b1bbad6c6
1 changed files with 10 additions and 1 deletions

View File

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