Skip to content

Commit

Permalink
fixed issue with filters disapearing
Browse files Browse the repository at this point in the history
  • Loading branch information
konzz committed Jun 7, 2017
1 parent 0e38061 commit 3872c67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/react/Library/components/FiltersForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class FiltersForm extends Component {
let propertyClass = property.active ? 'search__filter is-active' : 'search__filter';
if (property.type === 'select' || property.type === 'multiselect') {
return (
<FormGroup key={index}>
<FormGroup key={property.name}>
<ul className={propertyClass}>
<li>
{t(translationContext, property.label)}
Expand All @@ -104,7 +104,7 @@ export class FiltersForm extends Component {
}
if (property.type === 'nested') {
return (
<FormGroup key={index}>
<FormGroup key={property.name}>
<ul className={propertyClass}>
<li>
{t(translationContext, property.label)}
Expand Down Expand Up @@ -140,7 +140,7 @@ export class FiltersForm extends Component {
}
if (property.type === 'date' || property.type === 'multidate' || property.type === 'multidaterange') {
return (
<FormGroup key={index}>
<FormGroup key={property.name}>
<ul className={propertyClass}>
<li>
{t(translationContext, property.label)}
Expand All @@ -162,7 +162,7 @@ export class FiltersForm extends Component {
}
if (property.type === 'numeric') {
return (
<FormGroup key={index}>
<FormGroup key={property.name}>
<ul className={propertyClass}>
<li>
{t(translationContext, property.label)}
Expand All @@ -183,7 +183,7 @@ export class FiltersForm extends Component {
);
}
return (
<FormGroup key={index}>
<FormGroup key={property.name}>
<Field model={`.filters.${property.name}`} >
<ul className={propertyClass}>
<li>
Expand Down

0 comments on commit 3872c67

Please sign in to comment.