Skip to content

Commit 57527a9

Browse files
xingzhang-suseNickChungSUSE
authored andcommitted
Fixed timing issue on refresh function passing
1 parent 03a6f04 commit 57527a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.registry.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ export default class Registry extends SteveModel {
4646
message: e.message,
4747
}, { root: true });
4848
} finally {
49+
if (target.refreshFn instanceof Function) {
4950
setTimeout(() => {
5051
target.refreshFn();
5152
}, 2000);
53+
}
5254
}
5355
},
5456
};

0 commit comments

Comments
 (0)