From 4e236a62a793e3adf1c21b5410c5aa24fed9ec13 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Tue, 17 Dec 2024 07:35:20 -0800 Subject: [PATCH] Add companionWindowId to the CanvasLayers label selectors to ensure we use the contextually relevant locale to render them. --- src/containers/CanvasLayers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/containers/CanvasLayers.js b/src/containers/CanvasLayers.js index eb830966de..f206754b96 100644 --- a/src/containers/CanvasLayers.js +++ b/src/containers/CanvasLayers.js @@ -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 }), }); /**