fix: step-1 crashing (#44561)
parent
9b15d47566
commit
075bc04a2b
|
@ -907,8 +907,8 @@ const Editor = (props: EditorProps): JSX.Element => {
|
|||
if (!previewOpen && showProjectPreview) {
|
||||
const description = document.getElementsByClassName(
|
||||
'description-container'
|
||||
)[0];
|
||||
description.classList.add('description-highlighter');
|
||||
)?.[0];
|
||||
description?.classList.add('description-highlighter');
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [props.previewOpen]);
|
||||
|
|
Loading…
Reference in New Issue