fix: use optional chaining to fix lint errors (#1485)

This commit is contained in:
Vincent Voyer 2026-04-16 18:43:22 +02:00 committed by GitHub
parent 146b3cb8cf
commit d25b71c0a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ export const requestSuggestions = ({
execute: async ({ documentId }) => {
const document = await getDocumentById({ id: documentId });
if (!document || !document.content) {
if (!document?.content) {
return {
error: "Document not found",
};