Skip to content

Commit 841bb30

Browse files
committed
fix test
1 parent 693a18d commit 841bb30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

server/src/addons/plugins/plugin.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ export abstract class Plugin {
139139
}
140140

141141
private loadOperatorData(availableOperators: any): any {
142+
// Ensure availableOperators is iterable (array)
143+
if (!Array.isArray(availableOperators)) {
144+
return undefined;
145+
}
142146
//console.log(this.constructor.name, 'loading operator data -------------------');
143147
for (const operatorCRD of availableOperators) {
144148
//console.log(operatorCRD.spec.names.kind, this.constructor.name) // debug CRD

0 commit comments

Comments
 (0)