Skip to content

Commit d2a7ff1

Browse files
authored
Fix deployed check (#1071)
1 parent 802ac63 commit d2a7ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ export async function isClassDeployed(cls: string, api: AtelierAPI): Promise<boo
608608
.actionQuery("SELECT Deployed FROM %Dictionary.ClassDefinition WHERE Name = ?", [
609609
cls.slice(-4).toLowerCase() == ".cls" ? cls.slice(0, -4) : cls,
610610
])
611-
.then((data) => data.result.content[0].Deployed > 0);
611+
.then((data) => data.result.content[0]?.Deployed > 0);
612612
}
613613

614614
// ---------------------------------------------------------------------

0 commit comments

Comments
 (0)