mirror of
https://github.com/chaoticbackup/chaoticbackup.github.io.git
synced 2026-09-14 11:35:42 -05:00
[change] search reset won't clear url
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -259,7 +259,7 @@ export default class SearchCollection extends React.Component {
|
|||||||
reset = (event) => {
|
reset = (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.props.history.push('/collection/');
|
// this.props.history.push('/collection/');
|
||||||
this.cleanInput();
|
this.cleanInput();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -428,13 +428,13 @@ export default class SearchCollection extends React.Component {
|
|||||||
// Stats
|
// Stats
|
||||||
if (this.input.disciplines.courage > 0)
|
if (this.input.disciplines.courage > 0)
|
||||||
creatureResults = creatureResults.find({'gsx$courage': {'$gte': this.input.disciplines.courage}});
|
creatureResults = creatureResults.find({'gsx$courage': {'$gte': this.input.disciplines.courage}});
|
||||||
|
|
||||||
if (this.input.disciplines.power > 0)
|
if (this.input.disciplines.power > 0)
|
||||||
creatureResults = creatureResults.find({'gsx$power': {'$gte': this.input.disciplines.power}});
|
creatureResults = creatureResults.find({'gsx$power': {'$gte': this.input.disciplines.power}});
|
||||||
|
|
||||||
if (this.input.disciplines.wisdom > 0)
|
if (this.input.disciplines.wisdom > 0)
|
||||||
creatureResults = creatureResults.find({'gsx$wisdom': {'$gte': this.input.disciplines.wisdom}});
|
creatureResults = creatureResults.find({'gsx$wisdom': {'$gte': this.input.disciplines.wisdom}});
|
||||||
|
|
||||||
if (this.input.disciplines.speed > 0)
|
if (this.input.disciplines.speed > 0)
|
||||||
creatureResults = creatureResults.find({'gsx$speed': {'$gte': this.input.disciplines.speed}});
|
creatureResults = creatureResults.find({'gsx$speed': {'$gte': this.input.disciplines.speed}});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user