1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

bugfix: binding broken in propertycascader

This commit is contained in:
Michael Shanks 2020-02-21 15:39:56 +00:00
parent 56f00f4e1d
commit c0097f766e

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