make broken connections more obvious by removing controls
This commit is contained in:
parent
d9e9c28976
commit
cd12ab7bde
1 changed files with 7 additions and 1 deletions
|
|
@ -36,6 +36,9 @@ export default function MapChooser() {
|
|||
postMap.mutate(chosenMap);
|
||||
};
|
||||
|
||||
if (query.isError)
|
||||
return <></>;
|
||||
|
||||
const disabled = !query.isSuccess || postMap.isPending;
|
||||
|
||||
return <select className="MapChooser-DropDown" onChange={onChange} disabled={disabled}>
|
||||
|
|
|
|||
Reference in a new issue