Fix for issue with unintentional navigation when adding link
Fix for issue with unintentional navigation when adding link

The issue seem to stem from react sometimes giving two arguments on click, one synthetic event and one real.

To mitigate this issue we should type-check, then we will only do preventDefault when we actually want it (I know it's not as pretty but it should fix the issue).
brijeshb42/medium-draft,brijeshb42/medium-draft