[#4462] fixed Admin UI record and collection panels not reinitializing properly on browser back/forward navigation

This commit is contained in:
Gani Georgiev
2024-03-01 16:59:05 +02:00
parent 9babca5f77
commit bb410e7e0d
36 changed files with 124 additions and 92 deletions
@@ -19,6 +19,10 @@
$: isValid = isValidJson(serialized);
function serialize(val) {
if (typeof val == "string" && isValidJson(val)) {
return val; // already serlialized
}
return JSON.stringify(typeof val === "undefined" ? null : val, null, 2);
}