Skip to content

Commit

Permalink
Don't throw error if only a segmentation layer exists (#4265)
Browse files Browse the repository at this point in the history
* don't throw error if only a segmentation layer exists
* update changelog
* Merge branch 'master' into optional-color-layer
  • Loading branch information
philippotto authored and bulldozer-boy[bot] committed Aug 29, 2019
1 parent ea76872 commit 799c5b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.md).
- Fixed the error messages when trying to access a dataset with insufficient permissions. [#4244](https://github.com/scalableminds/webknossos/pull/4244)
- Fixed the upload of volume tracings by recognizing the correct format of the fallback layer. [#4248](https://github.com/scalableminds/webknossos/pull/4248)
- Fixed an imprecision when exporting an NML via the front-end. [#4262](https://github.com/scalableminds/webknossos/pull/4262)
- Fixed viewing and tracing of datasets which only contain a segmentation layer. [#4265](https://github.com/scalableminds/webknossos/pull/4265)

### Removed
-
Expand Down
2 changes: 1 addition & 1 deletion frontend/javascripts/oxalis/model_initialization.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ function initializeDataLayerInstances(
window.mappings = setupGlobalMappingsObject(dataLayers[segmentationLayer.name]);
}

if (getColorLayers(dataset).length === 0) {
if (getColorLayers(dataset).length === 0 && segmentationLayer == null) {
Toast.error(messages["dataset.no_data"]);
throw HANDLED_ERROR;
}
Expand Down

0 comments on commit 799c5b5

Please sign in to comment.