From 6e19b8e18f83dcc73a26f1498e30c5157a808437 Mon Sep 17 00:00:00 2001 From: "D. Berge" Date: Wed, 6 Aug 2025 11:59:52 +0200 Subject: [PATCH] Do not fail if old / new missing from notifications. The server will actually remove those when the notification would exceed a certain size, so it's expected that those might be null. --- lib/www/client/source/src/store/modules/notify/actions.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/www/client/source/src/store/modules/notify/actions.js b/lib/www/client/source/src/store/modules/notify/actions.js index 954f55f..24cffc9 100644 --- a/lib/www/client/source/src/store/modules/notify/actions.js +++ b/lib/www/client/source/src/store/modules/notify/actions.js @@ -33,17 +33,14 @@ function old_processServerEvent({state, getters, commit, dispatch}, [message]) { if (message.payload.operation == "INSERT") { if (message.payload.new == null) { console.warn("Expected payload.new to be non-null"); - return; } } else if (message.payload.operation == "UPDATE") { if (message.payload.old == null || message.payload.new == null) { console.warn("Expected payload.old and paylaod.new to be non-null"); - return; } } else if (message.payload.operation == "DELETE") { if (message.payload.old == null) { console.warn("Expected payload.old to be non-null"); - return; } } else { console.warn(`Unrecognised operation: ${message.payload.operation}`);