Skip to content

Commit

Permalink
fix: fix default label of scenario selector in Scenario view
Browse files Browse the repository at this point in the history
Default label was ignored if the key was missing in the translation dicts
  • Loading branch information
csm-thu committed Feb 28, 2022
1 parent a243bf7 commit 43d3466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Scenario/Scenario.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const Scenario = (props) => {
const sortedScenarioList = sortScenarioList(scenarioList.data.slice());
const noScenario = currentScenario.data === null;
const scenarioListDisabled = editMode || scenarioList === null || noScenario;
const scenarioListLabel = noScenario ? null : t('views.scenario.dropdown.scenario.label', Scenario);
const scenarioListLabel = noScenario ? null : t('views.scenario.dropdown.scenario.label', 'Scenario');
const showBackdrop = currentScenario.status === STATUSES.LOADING;

const createScenarioDialogLabels = {
Expand Down

0 comments on commit 43d3466

Please sign in to comment.