Skip to content
Snippets Groups Projects
Commit faeac0f2 authored by Tom Robinson's avatar Tom Robinson
Browse files

Fix flow and lint

parent b6eec340
Branches
Tags
No related merge requests found
......@@ -19,7 +19,7 @@ import {
savePermissions,
loadPermissions,
} from "../permissions";
import { goBack, push } from "react-router-redux";
import { push } from "react-router-redux";
const mapStateToProps = (state, props) => {
return {
......
......@@ -754,7 +754,7 @@ export const getCollectionsPermissionsGrid = createSelector(
const collection = _.findWhere(collections, {
id: collectionId,
});
if (collection.children.length > 0) {
if (collection && collection.children.length > 0) {
return [TogglePropagateAction];
} else {
return [];
......
......@@ -1021,7 +1021,7 @@ exports[`Styled(div) should render "with an icon" correctly 1`] = `
exports[`Toggle should render "off" correctly 1`] = `
<a
className="no-decoration "
className="no-decoration"
onClick={null}
style={
Object {
......@@ -1033,7 +1033,7 @@ exports[`Toggle should render "off" correctly 1`] = `
exports[`Toggle should render "on" correctly 1`] = `
<a
className="no-decoration undefined "
className="no-decoration"
onClick={null}
style={
Object {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment