Skip to content

Commit

Permalink
Merge pull request #4060 from ProjectMirador/layers-companion-window-id
Browse files Browse the repository at this point in the history
Add companionWindowId to the CanvasLayers label selectors...
  • Loading branch information
marlo-longley authored Dec 18, 2024
2 parents c6e4ecd + 4e236a6 commit 05194d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/containers/CanvasLayers.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import {
import { CanvasLayers } from '../components/CanvasLayers';

/** For connect */
const mapStateToProps = (state, { canvasId, windowId }) => ({
label: getCanvasLabel(state, { canvasId, windowId }),
layerMetadata: getLayers(state, { canvasId, windowId }),
layers: getSortedLayers(state, { canvasId, windowId }),
const mapStateToProps = (state, { canvasId, companionWindowId, windowId }) => ({
label: getCanvasLabel(state, { canvasId, companionWindowId, windowId }),
layerMetadata: getLayers(state, { canvasId, companionWindowId, windowId }),
layers: getSortedLayers(state, { canvasId, companionWindowId, windowId }),
});

/**
Expand Down

0 comments on commit 05194d8

Please sign in to comment.