From f4af702492b9c29f8b3b7fdad9677f7a3cceb2b9 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 11 Feb 2022 18:55:39 -0800 Subject: [PATCH] lint --- app/editor/components/SelectionToolbar.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/editor/components/SelectionToolbar.tsx b/app/editor/components/SelectionToolbar.tsx index e2f9f5bab..198125236 100644 --- a/app/editor/components/SelectionToolbar.tsx +++ b/app/editor/components/SelectionToolbar.tsx @@ -40,11 +40,11 @@ type Props = { view: EditorView; }; -function isVisible(props: Props, link: boolean) { +function isVisible(props: Props) { const { view } = props; const { selection } = view.state; - if (link) { + if (isMarkActive(view.state.schema.marks.link)(view.state)) { return true; } if (!selection || selection.empty) { @@ -239,7 +239,7 @@ export default class SelectionToolbar extends React.Component { return ( {link && range ? (