Commit 4bfbdc26 by PLN (Algolia)

comments: fix optional-chaining assignment breaking the build

parent 5bc56220
......@@ -381,7 +381,8 @@ export default function CommentsSection({ slug, lang }) {
className={styles.linkBtn}
onClick={() => {
setEditing(null);
formRef.current?.querySelector('textarea').value = '';
const ta = formRef.current?.querySelector('textarea');
if (ta) ta.value = '';
}}
>
({labels.cancelEdit})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment