diff --git a/girder/girder_large_image/web_client/vue/components/CompositeLayers.vue b/girder/girder_large_image/web_client/vue/components/CompositeLayers.vue index 7c91c6277..1f2e9c5eb 100644 --- a/girder/girder_large_image/web_client/vue/components/CompositeLayers.vue +++ b/girder/girder_large_image/web_client/vue/components/CompositeLayers.vue @@ -121,10 +121,9 @@ export default { // Assign colors this.layers.forEach((layerName) => { if (!this.compositeLayerInfo[layerName].palette) { - const channelColor = getChannelColor(layerName); + const channelColor = getChannelColor(layerName, usedColors); if (channelColor) { this.compositeLayerInfo[layerName].palette = channelColor; - usedColors.push(channelColor); } } }); diff --git a/girder/girder_large_image/web_client/vue/components/FrameSelector.vue b/girder/girder_large_image/web_client/vue/components/FrameSelector.vue index bfd8088c6..34bcc340a 100644 --- a/girder/girder_large_image/web_client/vue/components/FrameSelector.vue +++ b/girder/girder_large_image/web_client/vue/components/FrameSelector.vue @@ -1,7 +1,7 @@