Explorar el Código

Fix error on export (#808)

Jed Fox hace 5 años
padre
commit
74add8661a
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      src/components/ProjectName.tsx

+ 4 - 1
src/components/ProjectName.tsx

@@ -31,7 +31,10 @@ export class ProjectName extends Component<Props> {
       e.currentTarget.blur();
     }
   };
-  private makeEditable = (editable: HTMLSpanElement) => {
+  private makeEditable = (editable: HTMLSpanElement | null) => {
+    if (!editable) {
+      return;
+    }
     try {
       editable.contentEditable = "plaintext-only";
     } catch {