From e29de2b88172f210eb30c10e0dbe683a7f1264b2 Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Thu, 9 Oct 2025 15:42:31 +0200 Subject: [PATCH] [v1, web] Return "200 null" instead of no content in `v2/api/v2/users/:userId/ip_matcher` when there is no data, so it can be read as JSON in the frontend (#28913) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ⚠️ Deploy this to `web` first so the breaking change is handled correctly See https://github.com/overleaf/internal/pull/28792 GitOrigin-RevId: 3cc0344643557541791571dac7338bf878328095 --- .../web/app/src/Features/Notifications/NotificationsBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/src/Features/Notifications/NotificationsBuilder.js b/services/web/app/src/Features/Notifications/NotificationsBuilder.js index 741974fa67..9236b628ab 100644 --- a/services/web/app/src/Features/Notifications/NotificationsBuilder.js +++ b/services/web/app/src/Features/Notifications/NotificationsBuilder.js @@ -157,7 +157,7 @@ function ipMatcherAffiliation(userId) { if (error != null) { return callback(error) } - if (response.statusCode !== 200) { + if (response.statusCode !== 200 || !body) { return callback() }