fix display when no lists are selected
This commit is contained in:
parent
aafab15462
commit
723e0dd953
|
@ -55,16 +55,16 @@ const SelectToolList: React.FC<ISelectToolList> = (props) => {
|
||||||
<List sx={{ width: "100%", maxWidth: 360, bgcolor: "background.paper" }}>
|
<List sx={{ width: "100%", maxWidth: 360, bgcolor: "background.paper" }}>
|
||||||
{tools.length > 0 ? tools : "No tools found. Please contact support."}
|
{tools.length > 0 ? tools : "No tools found. Please contact support."}
|
||||||
</List>
|
</List>
|
||||||
<DialogActions>
|
{tools.length > 0 && <DialogActions>
|
||||||
<Button
|
<Button
|
||||||
autoFocus
|
autoFocus
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
props.handleSave(checked);
|
props.handleSave(checked);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Save changes
|
Save changes
|
||||||
</Button>
|
</Button>
|
||||||
</DialogActions>
|
</DialogActions>}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue