Skip to content

Commit

Permalink
fix: full ethyl benzene sample crash
Browse files Browse the repository at this point in the history
  • Loading branch information
hamed-musallam committed Mar 31, 2022
1 parent 39e0775 commit b8626de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/data2d/Spectrum2D/initiateDatum2D.ts
Expand Up @@ -69,7 +69,7 @@ export function initiateDatum2D(options: any, usedColors = {}): Datum2D {
function getColor(options, usedColors) {
let color = { positiveColor: 'red', negativeColor: 'blue' };
if (
options?.display.negativeColor === undefined ||
options?.display?.negativeColor === undefined ||
options?.display?.positiveColor === undefined
) {
color = get2DColor(options.info.experiment, usedColors['2d'] || []);
Expand Down

0 comments on commit b8626de

Please sign in to comment.