Fix code mirror autocomplete showing NO NAME for certain bindings

This commit is contained in:
Andrew Kingston 2024-03-22 12:10:22 +00:00
parent 732c715498
commit 35d64322ae
1 changed files with 1 additions and 1 deletions

View File

@ -313,7 +313,7 @@ export const bindingsToCompletions = (bindings, mode) => {
...bindingByCategory[catKey].reduce((acc, binding) => {
let displayType = binding.fieldSchema?.type || binding.display?.type
acc.push({
label: binding.display?.name || "NO NAME",
label: binding.display?.name || binding.readableBinding || "NO NAME",
info: completion => {
return buildBindingInfoNode(completion, binding)
},