Skip to content

Commit 1c72aec

Browse files
authored
Fix: Adding validations for properties
1 parent c3038fb commit 1c72aec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cds-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cds.once("served", async () => {
77
const production = profiles.includes('production');
88

99
// read notification types
10-
const notificationTypes = readFile(cds.env.requires.notifications.types);
10+
const notificationTypes = readFile(cds.env.requires?.notifications?.types);
1111

1212
if(validateNotificationTypes(notificationTypes)) {
1313
if (production) {

0 commit comments

Comments
 (0)