fix display when no lists are selected

This commit is contained in:
Tobias Maestrini 2024-02-25 18:32:12 +01:00
parent aafab15462
commit 723e0dd953
1 changed files with 3 additions and 3 deletions

View File

@ -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>}
</> </>
); );
}; };