Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed May 13, 2020
1 parent 16aa7a0 commit 5001e29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/editor/render.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import { settings } from '~/config';

export const Element = props => {
const { attributes, children, element } = props;
const addonEl = settings.slate.availableButtons[element.type];
const AddonEl = settings.slate.availableButtons[element.type];

if (addonEl) return addonEl(props);
if (AddonEl) {
return <AddonEl {...props} />;
}

switch (element.type) {
case 'block-quote':
Expand Down

0 comments on commit 5001e29

Please sign in to comment.