Fix: Editing a secret clears its masked value

This commit is contained in:
Maurus Decimus
2026-04-22 20:09:53 +02:00
parent 35e0ef74b9
commit 27ba55fbf6
9 changed files with 463 additions and 13 deletions
+2
View File
@@ -4,6 +4,8 @@
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-SEL
*/
export const SECRET_MASK = '****';
export function jmapMapToArray<T>(val: unknown): T[] {
if (Array.isArray(val)) return val as T[];
if (val && typeof val === 'object') {