Skip to content

Commit 762b8d7

Browse files
committed
pref: fix broken cacheResult method
1 parent 1bf9262 commit 762b8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/data-diff-viewer/src/report_loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export async function getSampleData(sampleTableNames, sampleIds, columnNames) {
153153
let cache = {};
154154
function cacheResult(fun_name, fun) {
155155
return async () => {
156-
if (!(fun.name in cache)) {
156+
if (!(fun_name in cache)) {
157157
cache[fun_name] = fun();
158158
}
159159
return cache[fun_name];

0 commit comments

Comments
 (0)