Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

bootstrap_typeahead: Address @typescript-eslint/no-floating-promises.

Anders Kaseorg18b8d0f1b238
diff --git a/web/src/bootstrap_typeahead.ts b/web/src/bootstrap_typeahead.ts
index 5209340889f..df1e00a2382 100644
--- a/web/src/bootstrap_typeahead.ts
+++ b/web/src/bootstrap_typeahead.ts
@@ -845,8 +845,7 @@ export class Typeahead<ItemType extends string | object> {
e.stopPropagation();
// Refresh the typeahead menu to account for any changes in the
// input position by asking popper to recompute your tooltip's position.
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
- this.instance?.popperInstance?.update();
+ void this.instance?.popperInstance?.update();
}
}