We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4ddd89 commit 5aaec6dCopy full SHA for 5aaec6d
src/io.ts
@@ -159,7 +159,7 @@ export async function createSourceData(config: ImageLayerConfig): Promise<Source
159
// If explicit channel axis is provided, try to load as multichannel.
160
if ('channel_axis' in config || labels.includes('c')) {
161
config = config as MultichannelConfig;
162
- config.channel_axis = config.channel_axis || labels.indexOf('c');
+ config.channel_axis = config.channel_axis ?? labels.indexOf('c');
163
return loadMultiChannel(config, loader, max);
164
}
165
0 commit comments