mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 12:35:46 +03:00
⚡ Render empty array in variable selector (#1537)
This commit is contained in:
parent
538d34510d
commit
dab82965a4
@ -114,6 +114,9 @@ export default mixins(
|
|||||||
// Has still options left so return
|
// Has still options left so return
|
||||||
inputData.options = this.sortOptions(newOptions);
|
inputData.options = this.sortOptions(newOptions);
|
||||||
return inputData;
|
return inputData;
|
||||||
|
} else if (Array.isArray(newOptions) && newOptions.length === 0) {
|
||||||
|
delete inputData.options;
|
||||||
|
return inputData;
|
||||||
}
|
}
|
||||||
// Has no options left so remove
|
// Has no options left so remove
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user