Skip to content
Snippets Groups Projects
Commit eac17076 authored by felmer's avatar felmer
Browse files

SSDM-8241: Bug fixed by filtering null spaces out

parent 4eab252e
No related branches found
No related tags found
No related merge requests found
......@@ -273,7 +273,7 @@ function SettingsFormView(settingsFormController, settingsFormModel) {
var spacesOptions = this._settingsFormController.getInventorySpacesOptions();
spacesOptions = JSON.parse(JSON.stringify(spacesOptions));
var initialValues = this._profileToEdit.inventorySpaces;
var initialValues = this._profileToEdit.inventorySpaces.filter(space => space);
for(var i = 0; i < initialValues.length; i++) {
if($.inArray(initialValues[i], spacesOptions) === -1) {
......@@ -753,7 +753,9 @@ function SettingsFormView(settingsFormController, settingsFormModel) {
for (var column of tableModel.columns) {
var $widget = row[column.label];
var value = this._getWidgetValue($widget);
rowValues[column.label] = value;
if (value) {
rowValues[column.label] = value;
}
}
if (tableModel.rowExtraModels.length === tableModel.rows.length) {
rowValues.extraValues = tableModel.rowExtraModels[i].getValues();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment