aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZousar Shaker <[email protected]>2025-04-04 07:56:09 -0600
committerGitHub Enterprise <[email protected]>2025-04-04 07:56:09 -0600
commit95050afc153f04407cce9a5264608996591ea45f (patch)
treecc26ee4ed307c08b2e7e0ecf98a3cfddfb4cceb5 /src
parent5.6.3-pre1 (diff)
parentMerge branch 'main' into zs/web-ui-blank-import-name-fix (diff)
downloadzen-95050afc153f04407cce9a5264608996591ea45f.tar.xz
zen-95050afc153f04407cce9a5264608996591ea45f.zip
Merge pull request #345 from ue-foundation/zs/web-ui-blank-import-name-fix
Zs/web UI blank import name fix
Diffstat (limited to 'src')
-rw-r--r--src/zenserver/frontend/html/indexer/cache.js2
-rw-r--r--src/zenserver/frontend/html/indexer/worker.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/zenserver/frontend/html/indexer/cache.js b/src/zenserver/frontend/html/indexer/cache.js
index 390aa948d..b90194855 100644
--- a/src/zenserver/frontend/html/indexer/cache.js
+++ b/src/zenserver/frontend/html/indexer/cache.js
@@ -9,7 +9,7 @@ export class Cache
{
this._db_name = db_name;
this._store_names = store_names;
- this._version = 1;
+ this._version = 2;
this._db = this._open();
}
diff --git a/src/zenserver/frontend/html/indexer/worker.js b/src/zenserver/frontend/html/indexer/worker.js
index 25c8d7671..b4d547ef9 100644
--- a/src/zenserver/frontend/html/indexer/worker.js
+++ b/src/zenserver/frontend/html/indexer/worker.js
@@ -81,7 +81,7 @@ async function map_id_to_key(project_id, oplog, start, end, page_size, stride)
var raw_size = 0;
for (const item of pkg_data.as_array())
{
- var found = 0, pkg_id;
+ var found = 0, pkg_id = undefined;
for (const field of item.as_object())
{
if (!id && field.is_named("id")) pkg_id = field.as_value();