Skip to content

Commit 95c610c

Browse files
authored
Update web_src/js/features/comp/TextExpander.ts
1 parent ec3d9c9 commit 95c610c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/comp/TextExpander.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export function initTextExpander(expander: TextExpanderElement) {
6969
// check the input before the request, to avoid emitting empty query to backend (still related to the upstream bug)
7070
if (!shouldShowIssueSuggestions()) return {matched: false};
7171
// await sleep(Math.random() * 1000); // help to reproduce the text-expander bug
72-
// check the input again to avoid text-expander use incorrect position (upstream bug)
7372
const ret = await fetchIssueSuggestions(key, text);
73+
// check the input again to avoid text-expander use incorrect position (upstream bug)
7474
if (!shouldShowIssueSuggestions()) return {matched: false};
7575
return ret;
7676
}, 300); // to match onInputDebounce delay

0 commit comments

Comments
 (0)