bugfix
This commit is contained in:
parent
ac8a2e6489
commit
9768a542b3
|
@ -19,6 +19,7 @@ const Log = () => {
|
|||
borderBottomLeftRadius: 4,
|
||||
borderBottomRightRadius: 4,
|
||||
borderColor: theme.palette.text.disabled,
|
||||
overflowX: "auto",
|
||||
}}
|
||||
>
|
||||
<ScalarGraph />
|
||||
|
|
|
@ -205,6 +205,15 @@ const ScalarGraph = () => {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
} else if (checkedToggles.length === 0) {
|
||||
return (
|
||||
<Alert sx={{ mt: 2 }} severity="info">
|
||||
<FormattedMessage
|
||||
id="makeASelection"
|
||||
defaultMessage="Please make a selection on the left"
|
||||
/>
|
||||
</Alert>
|
||||
);
|
||||
} else if (toggles === null) {
|
||||
return (
|
||||
<Alert sx={{ mt: 2 }} severity="error">
|
||||
|
@ -215,14 +224,7 @@ const ScalarGraph = () => {
|
|||
</Alert>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Alert sx={{ mt: 2 }} severity="info">
|
||||
<FormattedMessage
|
||||
id="makeASelection"
|
||||
defaultMessage="Please make a selection on the left"
|
||||
/>
|
||||
</Alert>
|
||||
);
|
||||
return null;
|
||||
};
|
||||
|
||||
return <>{renderGraphs()}</>;
|
||||
|
|
Loading…
Reference in New Issue