From 50c58ec693c6d620f1d49056976a3579d307162a Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 1 Dec 2023 11:04:14 +0000 Subject: [PATCH] Disable sliding sync proxy check for native support mode (#11936) Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/dialogs/SlidingSyncOptionsDialog.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/dialogs/SlidingSyncOptionsDialog.tsx b/src/components/views/dialogs/SlidingSyncOptionsDialog.tsx index 5419f749e6..958c8d0876 100644 --- a/src/components/views/dialogs/SlidingSyncOptionsDialog.tsx +++ b/src/components/views/dialogs/SlidingSyncOptionsDialog.tsx @@ -86,8 +86,9 @@ export const SlidingSyncOptionsDialog: React.FC<{ onFinished(enabled: boolean): const validProxy = withValidation({ async deriveData({ value }): Promise<{ error?: unknown }> { + if (!value) return {}; try { - await proxyHealthCheck(value!, MatrixClientPeg.safeGet().baseUrl); + await proxyHealthCheck(value, MatrixClientPeg.safeGet().baseUrl); return {}; } catch (error) { return { error };