Procházet zdrojové kódy

[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)

⚠️ Deploy this to `web` first so the breaking change is handled correctly

See https://github.com/overleaf/internal/pull/28792

GitOrigin-RevId: 3cc0344643557541791571dac7338bf878328095
Antoine Clausse před 1 rokem
rodič
revize
5a11958a57

+ 1 - 1
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()
           }