Skip to content

Commit

Permalink
refactor: Renamed channel to channelName
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrimpCryptid committed Oct 25, 2024
1 parent 8522acd commit 12ad739
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aics-image-viewer/shared/utils/viewerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function colorHexToArray(hex: string): ColorArray | null {
}

export function initializeOneChannelSetting(
channel: string,
channelName: string,
index: number,
defaultColor: ColorArray,
viewerChannelSettings?: ViewerChannelSettings,
Expand All @@ -61,11 +61,11 @@ export function initializeOneChannelSetting(
let initSettings = {} as Partial<ViewerChannelSetting>;
if (viewerChannelSettings) {
// search for channel in settings using groups, names and match values
initSettings = findFirstChannelMatch(channel, index, viewerChannelSettings) ?? {};
initSettings = findFirstChannelMatch(channelName, index, viewerChannelSettings) ?? {};
}

return {
name: channel ?? "Channel " + index,
name: channelName ?? "Channel " + index,
volumeEnabled: initSettings.enabled ?? defaultChannelState.volumeEnabled,
isosurfaceEnabled: initSettings.surfaceEnabled ?? defaultChannelState.isosurfaceEnabled,
colorizeEnabled: initSettings.colorizeEnabled ?? defaultChannelState.colorizeEnabled,
Expand Down

0 comments on commit 12ad739

Please sign in to comment.