From 2f374ba7efbfef6736f8621470f2d6865c05f786 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 2 Jul 2024 14:50:32 +0200 Subject: [PATCH] improve sharable hash --- frontend/src/lib/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/utils.ts b/frontend/src/lib/utils.ts index 9bdb2028bf..42a18e7152 100644 --- a/frontend/src/lib/utils.ts +++ b/frontend/src/lib/utils.ts @@ -678,7 +678,7 @@ export function computeSharableHash(args: any) { }) try { let r = new URLSearchParams(nargs).toString() - return r + return r.length > 1000000 ? '' : r } catch (e) { console.error('Error computing sharable hash', e) return ''