diff --git a/CHANGELOG.md b/CHANGELOG.md index bd233e81d09..a1d95dcaa4a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.md). ### Fixed - Users only get tasks of datasets that they can access. [#4488](https://github.com/scalableminds/webknossos/pull/4488) +- Fixed the import of datasets which was temporarily broken. [#4497](https://github.com/scalableminds/webknossos/pull/4497) - Fixed the displayed segment ids in segmentation tab when "Render Missing Data Black" is turned off. [#4480](https://github.com/scalableminds/webknossos/pull/4480) ### Removed diff --git a/frontend/javascripts/dashboard/dataset/dataset_import_view.js b/frontend/javascripts/dashboard/dataset/dataset_import_view.js index 26f5821a768..f2036d44c84 100644 --- a/frontend/javascripts/dashboard/dataset/dataset_import_view.js +++ b/frontend/javascripts/dashboard/dataset/dataset_import_view.js @@ -148,13 +148,16 @@ class DatasetImportView extends React.PureComponent { }), ), }; - const { layers } = datasetDefaultConfiguration; + const layers = datasetDefaultConfiguration.layers || {}; // Remove unused brightness and contrast config and replace it with intensityRange if needed. dataSource.dataLayers.forEach(layer => { if (layer.category !== "color") { return; } const currentColorLayerConfig = layers[layer.name]; + if (currentColorLayerConfig == null) { + return; + } delete currentColorLayerConfig.brightness; delete currentColorLayerConfig.contrast;