Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Fixed container array issue in header.js #118

Merged
merged 1 commit into from
Apr 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class NodeHeader extends React.Component {
const {animations, decorators, node, onClick, style} = this.props;
const {active, children} = node;
const terminal = !children;
const container = [style.link, active ? style.activeLink : null];
const container = (active && style.activeLink) ? Object.assign({}, style.link, style.activeLink) : style.link;
const headerStyles = Object.assign({container}, style);

return (
Expand Down