From 84751db259c015adbeced8323a456c20238ab911 Mon Sep 17 00:00:00 2001 From: Florian Steffens Date: Fri, 14 Apr 2023 15:58:58 +0200 Subject: [PATCH] fix(multiSelection): catch error if multiselection has no values Signed-off-by: Florian Steffens --- .../ncTable/mixins/columnsTypes/selectionMultiMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/ncTable/mixins/columnsTypes/selectionMultiMixin.js b/src/shared/components/ncTable/mixins/columnsTypes/selectionMultiMixin.js index 1b030d8a3..75a8ba7f9 100644 --- a/src/shared/components/ncTable/mixins/columnsTypes/selectionMultiMixin.js +++ b/src/shared/components/ncTable/mixins/columnsTypes/selectionMultiMixin.js @@ -21,7 +21,7 @@ export default { // values is an array of option-ids as string const objects = [] - values.forEach(id => { + values?.forEach(id => { objects.push(this.getOptionObjectForSelectionMulti(parseInt(id), column)) }) return objects