Update InputGlobalComponent to handle unavaliableFields in useGlobalVariablesStore
This commit is contained in:
parent
6261c71e01
commit
e82d8f4826
1 changed files with 2 additions and 1 deletions
|
|
@ -125,7 +125,8 @@ export default function InputGlobalComponent({
|
|||
</DeleteConfirmationModal>
|
||||
)}
|
||||
selectedOption={
|
||||
data?.node?.template[name].load_from_db ?? false
|
||||
data?.node?.template[name].load_from_db &&
|
||||
globalVariablesEntries.includes(data?.node?.template[name].value??"")
|
||||
? data?.node?.template[name].value
|
||||
: ""
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue