From ee7f161bf79f06411696923681542c15268dcb7d Mon Sep 17 00:00:00 2001 From: alisman Date: Tue, 15 Nov 2022 16:35:20 -0500 Subject: [PATCH] Plots tab option validation did not allow for the "none" selected value --- src/pages/resultsView/plots/PlotsTab.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/resultsView/plots/PlotsTab.tsx b/src/pages/resultsView/plots/PlotsTab.tsx index cea71943f31..c416d5d5a4a 100644 --- a/src/pages/resultsView/plots/PlotsTab.tsx +++ b/src/pages/resultsView/plots/PlotsTab.tsx @@ -795,14 +795,16 @@ export default class PlotsTab extends React.Component { // due to legacy urls, it's possible that selections can be made which // are no longer avaiable. this handles that case - const selectedDataTypeDoesNotExists = !_.some( + const selectedDataTypeDoesNotExist = !_.some( dataTypeOptions, - o => o.value === this._dataType + o => + this._dataType === NONE_SELECTED_OPTION_STRING_VALUE || + o.value === this._dataType ); if ( (this._dataType === undefined && dataTypeOptions.length) || - selectedDataTypeDoesNotExists + selectedDataTypeDoesNotExist ) { // return computed default if _dataType is undefined and if there are options to select a default value from if (