We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405564f commit cbfb928Copy full SHA for cbfb928
src/puter-js/src/modules/KV.js
@@ -51,6 +51,13 @@ class KV{
51
}),
52
});
53
const arr_values = await resp.json();
54
+ if ( ! Array.isArray(arr_values?.result) ) {
55
+ this.gui_cached.resolve({});
56
+ setTimeout(() => {
57
+ this.gui_cached = null;
58
+ }, 4000);
59
+ return;
60
+ }
61
const obj = {};
62
for (let i = 0; i < gui_cache_keys.length; i++) {
63
obj[gui_cache_keys[i]] = arr_values.result[i];
0 commit comments