From a21352ae4feca001483f7f9672d2d9ba41c99709 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Wed, 18 Jan 2023 08:50:56 +0100 Subject: [PATCH] Check size for sneding customizations --- interface/src/project/SettingsCustomization.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/project/SettingsCustomization.tsx b/interface/src/project/SettingsCustomization.tsx index 06aa98ddc..6a104278d 100644 --- a/interface/src/project/SettingsCustomization.tsx +++ b/interface/src/project/SettingsCustomization.tsx @@ -263,9 +263,9 @@ const SettingsCustomization: FC = () => { (new_de.ma ? '<' + new_de.ma : '') ); - // check size in bytes to match buffer in CPP, which is 4096 + // check size in bytes to match buffer in CPP, which is 2048 const bytes = new TextEncoder().encode(JSON.stringify(masked_entities)).length; - if (bytes > 4000) { + if (bytes > 2000) { enqueueSnackbar(LL.CUSTOMIZATIONS_FULL(), { variant: 'warning' }); return; }