mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Fix linter error (#4808)
This commit is contained in:
@@ -124,7 +124,7 @@ export class GoogleSheet {
|
||||
const foundItem = response.sheets.find(
|
||||
(item: { properties: { sheetId: number } }) => item.properties.sheetId === +sheetId,
|
||||
);
|
||||
if (!foundItem || !foundItem.properties || !foundItem.properties.title) {
|
||||
if (!foundItem?.properties?.title) {
|
||||
throw new Error(`Sheet with id ${sheetId} not found`);
|
||||
}
|
||||
return foundItem.properties.title;
|
||||
|
||||
Reference in New Issue
Block a user