[change] search reset won't clear url

This commit is contained in:
Daniel
2018-04-16 20:30:37 -04:00
parent 78037aa0eb
commit d8eb269068
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

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