1
1
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:
Iván Ovejero 2021-03-21 12:39:06 +01:00 committed by GitHub
parent 538d34510d
commit dab82965a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;