[#4462] fixed Admin UI record and collection panels not reinitializing properly on browser back/forward navigation
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user