Skip to content

Commit

Permalink
fix: padding/margin advanced settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel910 committed Sep 9, 2019
1 parent c22c08f commit a8e4115
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ const PMSettings = (props: Props) => {
});
}

if (!history) {
updateElement({
element: newElement,
history,
merge: true
});
}
updateElement({
element: newElement,
history,
merge: true
});
};
});

Expand Down Expand Up @@ -120,7 +118,7 @@ const PMSettings = (props: Props) => {
/>
</React.Fragment>
)}
<Footer advanced={advanced || false} toggleAdvanced={getUpdateValue("advanced")} />
<Footer advanced={Boolean(advanced)} toggleAdvanced={getUpdateValue("advanced")} />
</Tab>
<Tab label={"Mobile"}>
{!advanced ? (
Expand Down Expand Up @@ -160,7 +158,7 @@ const PMSettings = (props: Props) => {
/>
</React.Fragment>
)}
<Footer advanced={advanced || false} toggleAdvanced={getUpdateValue("advanced")} />
<Footer advanced={Boolean(advanced)} toggleAdvanced={getUpdateValue("advanced")} />
</Tab>
</Tabs>
);
Expand Down

0 comments on commit a8e4115

Please sign in to comment.