We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd40b40 commit 9a2fd5aCopy full SHA for 9a2fd5a
1 file changed
src/suggestion/getNodeSuggestions.ts
@@ -58,7 +58,7 @@ export const getNodeSuggestions = (
58
59
60
return functionToSuggest?.map(f => {
61
- return {
+ const node: NodeFunction = {
62
__typename: "NodeFunction",
63
id: `gid://sagittarius/NodeFunction/1`,
64
functionDefinition: {
@@ -75,9 +75,13 @@ export const getNodeSuggestions = (
75
id: p?.id,
76
identifier: p?.identifier
77
},
78
- value: null
+ value: p?.defaultValue ? {
79
+ __typename: "LiteralValue",
80
+ value: p.defaultValue.value
81
+ } : null
82
}))
83
}
- } as any as NodeFunction;
84
+ }
85
+ return node
86
}).filter((f): f is NodeFunction => f !== null) ?? [];
87
0 commit comments