fix: use optional chaining to fix lint errors (#1485)
This commit is contained in:
parent
146b3cb8cf
commit
d25b71c0a1
3 changed files with 3 additions and 3 deletions
|
|
@ -162,7 +162,7 @@ function PureArtifact({
|
|||
|
||||
const currentDocument = currentDocuments.at(-1);
|
||||
|
||||
if (!currentDocument || !currentDocument.content) {
|
||||
if (!currentDocument?.content) {
|
||||
setIsContentDirty(false);
|
||||
return currentDocuments;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue