mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
routes: distance filter disabled in some cases
This commit is contained in:
parent
8248d9f166
commit
008acbbfd7
2 changed files with 2 additions and 1 deletions
|
@ -90,6 +90,7 @@ class Component extends React.Component<Props> {
|
||||||
onChange={this.props.searchSetDistance}
|
onChange={this.props.searchSetDistance}
|
||||||
defaultValue={distance}
|
defaultValue={distance}
|
||||||
pushable={20}
|
pushable={20}
|
||||||
|
disabled={list.length === 0 || min >= max}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -227,7 +227,7 @@ export const INITIAL_STATE = {
|
||||||
author: '',
|
author: '',
|
||||||
tab: 'mine',
|
tab: 'mine',
|
||||||
min: 0,
|
min: 0,
|
||||||
max: 300,
|
max: 0,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue