Skip to content

MultiViewError after resetting perspective #690

@danielwiehl

Description

@danielwiehl

Describe the bug

The workbench throws an error when resetting the perspective after moving a view from the peripheral area into the main area.

To Reproduce

Steps to reproduce the behavior:

  1. Create a perspective with the following layout:
    provideWorkbench({
      layout: factory => factory
        .addPart(MAIN_AREA)
        .addPart('part.left', {align: 'left', relativeTo: MAIN_AREA})
        .addView('view', {partId: 'part.left'}),
    });
  2. Drag the view into the main area
  3. Reset perspective
  4. See error
    root_effect_scheduler.mjs:3597 ERROR Error: [MultiViewError] Multiple views found: [id=view.5056046e]
       at _ɵWorkbenchLayout.views (ɵworkbench-layout.ts:510:83)
       at _ɵWorkbenchLayout.view (ɵworkbench-layout.ts:465:25)
       at matchesIfNavigated (workbench-route-guards.ts:202:25)

Environment

SCION Workbench version: 20.0.0-beta.7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions