diff --git a/src/components/ProjectName.tsx b/src/components/ProjectName.tsx index f0ed71d7..944858df 100644 --- a/src/components/ProjectName.tsx +++ b/src/components/ProjectName.tsx @@ -31,7 +31,10 @@ export class ProjectName extends Component { e.currentTarget.blur(); } }; - private makeEditable = (editable: HTMLSpanElement) => { + private makeEditable = (editable: HTMLSpanElement | null) => { + if (!editable) { + return; + } try { editable.contentEditable = "plaintext-only"; } catch {