···523523 if (previousFocused === props.entityID) return;
524524 previousFocused = props.entityID;
525525 if (
526526- !view.state.selection.anchor ||
526526+ view.state.selection.anchor === undefined ||
527527 //@ts-ignore I'm not sure why this type isn't here because it's used in the function underneath
528528 !view.docView
529529 )