Skip to content

Commit 5a3d3f3

Browse files
kiyaroseCopilot
andauthored
Update ios/extention/Resources/scripts/wiki-data-manager.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8a2c2b5 commit 5a3d3f3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ios/extention/Resources/scripts/wiki-data-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ let _wikiIndexPromise = null
112112

113113
/** Ensure the in-memory lookup index is built. */
114114
function ensureIndex () {
115-
if (_wikiIndex !== null) return _wikiIndex
115+
if (_wikiIndex !== null) return Promise.resolve(_wikiIndex)
116116
if (_wikiIndexPromise) return _wikiIndexPromise
117117
_wikiIndexPromise = getWikiData().then(data => {
118118
_wikiIndex = buildIndex(data)

0 commit comments

Comments
 (0)