@@ -1731,7 +1731,7 @@ async function findProjectHashOnServer (ow, projectName) {
1731
1731
// check for package with the projectName in manifest File and if found -> return the projectHash on the server
1732
1732
const resultSync = await ow . packages . list ( options )
1733
1733
for ( const pkg of resultSync ) {
1734
- if ( pkg . annotations . length > 0 ) {
1734
+ if ( pkg . annotations ? .length > 0 ) {
1735
1735
const whiskManaged = pkg . annotations . find ( elem => elem . key === 'whisk-managed' )
1736
1736
if ( whiskManaged !== undefined && whiskManaged . value . projectName === projectName ) {
1737
1737
projectHash = whiskManaged . value . projectHash
@@ -1742,7 +1742,7 @@ async function findProjectHashOnServer (ow, projectName) {
1742
1742
// if no package exists with the projectName -> look in actions
1743
1743
const resultActionList = await ow . actions . list ( )
1744
1744
for ( const action of resultActionList ) {
1745
- if ( action . annotations . length > 0 ) {
1745
+ if ( action . annotations ? .length > 0 ) {
1746
1746
const whiskManaged = action . annotations . find ( elem => elem . key === 'whisk-managed' )
1747
1747
if ( whiskManaged !== undefined && whiskManaged . value . projectName === projectName ) {
1748
1748
projectHash = whiskManaged . value . projectHash
@@ -1754,7 +1754,7 @@ async function findProjectHashOnServer (ow, projectName) {
1754
1754
// if no action exists with the projectName -> look in triggers
1755
1755
const resultTriggerList = await ow . triggers . list ( )
1756
1756
for ( const trigger of resultTriggerList ) {
1757
- if ( trigger . annotations . length > 0 ) {
1757
+ if ( trigger . annotations ? .length > 0 ) {
1758
1758
const whiskManaged = trigger . annotations . find ( elem => elem . key === 'whisk-managed' )
1759
1759
if ( whiskManaged !== undefined && whiskManaged . value . projectName === projectName ) {
1760
1760
projectHash = whiskManaged . value . projectHash
@@ -1766,7 +1766,7 @@ async function findProjectHashOnServer (ow, projectName) {
1766
1766
// if no trigger exists with the projectName -> look in rules
1767
1767
const resultRules = await ow . rules . list ( )
1768
1768
for ( const rule of resultRules ) {
1769
- if ( rule . annotations . length > 0 ) {
1769
+ if ( rule . annotations ? .length > 0 ) {
1770
1770
const whiskManaged = rule . annotations . find ( elem => elem . key === 'whisk-managed' )
1771
1771
if ( whiskManaged !== undefined &&
1772
1772
whiskManaged . value . projectName === projectName ) {
0 commit comments