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.

settings: Added missing assert statement.

Sahil Batra87bf28820fab
diff --git a/web/src/settings_users.ts b/web/src/settings_users.ts
index b650f229b55..e4e893aed99 100644
--- a/web/src/settings_users.ts
+++ b/web/src/settings_users.ts
@@ -236,6 +236,7 @@ function add_value_to_filters(
assert(typeof value === "number");
section.filters.status_code = value;
} else {
+ assert(key === "text_search");
assert(typeof value === "string");
section.filters.text_search = value;
}