Skip to content

Commit 2e8d6e0

Browse files
author
Kyle Kim
committed
Isotope Grid Search + Sort Fix
1 parent 70cbb64 commit 2e8d6e0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/IsotopeGrid/IsotopeGrid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ var IsotopeGrid = function (_React$Component) {
215215
if (reload !== this.state.reload) this.setState({ reload: reload });
216216
if (Object.keys(options).length && this.state.isotope) {
217217
this.state.isotope.arrange(_extends({}, options));
218-
} else if (!Object.keys(options).length) {
218+
} else if (Object.keys(options).length) {
219219
this.createIsotope();
220220
}
221221
}

src/IsotopeGrid/IsotopeGrid.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ class IsotopeGrid extends React.Component {
169169
if (reload !== this.state.reload) this.setState({ reload });
170170
if (Object.keys(options).length && this.state.isotope) {
171171
this.state.isotope.arrange({ ...options });
172-
} else if (!Object.keys(options).length) {
172+
} else if (Object.keys(options).length) {
173173
this.createIsotope();
174174
}
175175
}

0 commit comments

Comments
 (0)