typeahead: Remove default value for triage.

"get_item"'s default value is not type-safe as we require its return
value to always be a "string". Note that since the mobile app does not
rely on this function directly, it is sufficient to only refactor the web
app for this transition.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2022-12-28 15:28:52 +08:00
committed by Tim Abbott
parent ec58b6790d
commit 45fdfcd6d4
3 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ export function get_emoji_matcher(query) {
};
}
export function triage(query, objs, get_item = (x) => x) {
export function triage(query, objs, get_item) {
/*
We split objs into four groups: