Removed filter excluding links from user bindings.
This commit is contained in:
parent
749bfeeaae
commit
acf583120a
|
@ -396,19 +396,17 @@ export const getUserBindings = () => {
|
||||||
|
|
||||||
bindings = keys.reduce((acc, key) => {
|
bindings = keys.reduce((acc, key) => {
|
||||||
const fieldSchema = schema[key]
|
const fieldSchema = schema[key]
|
||||||
if (fieldSchema.type !== "link") {
|
acc.push({
|
||||||
acc.push({
|
type: "context",
|
||||||
type: "context",
|
runtimeBinding: `${safeUser}.${makePropSafe(key)}`,
|
||||||
runtimeBinding: `${safeUser}.${makePropSafe(key)}`,
|
readableBinding: `Current User.${key}`,
|
||||||
readableBinding: `Current User.${key}`,
|
// Field schema and provider are required to construct relationship
|
||||||
// Field schema and provider are required to construct relationship
|
// datasource options, based on bindable properties
|
||||||
// datasource options, based on bindable properties
|
fieldSchema,
|
||||||
fieldSchema,
|
providerId: "user",
|
||||||
providerId: "user",
|
category: "Current User",
|
||||||
category: "Current User",
|
icon: "User",
|
||||||
icon: "User",
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
return acc
|
return acc
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue