Skip to content

Commit c5fb55c

Browse files
authored
fix: ReferenceError: caches is not defined (#1601)
1 parent 2bff6fc commit c5fb55c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_ui/packages/smart-tools/src/utils/tool-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const stackPlanes = (CV: OpenCVTypes.cv, mat: OpenCVTypes.Mat) => {
116116
};
117117

118118
export const loadSource = async (source: string, cacheKey = 'general'): Promise<Response | undefined> => {
119-
if (!caches) {
119+
if (typeof caches === 'undefined') {
120120
return await self.fetch(source);
121121
}
122122

0 commit comments

Comments
 (0)