feat: fix null pointer handling in log modals

This commit is contained in:
ramvignesh-b
2026-04-16 04:29:36 +05:30
parent cc8e3e4e4e
commit 9491559d7d
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -309,6 +309,7 @@ export default function Editor() {
onClose={() => onClose={() =>
setDecryptionStatus({ status: "RESET", message: "", log: "" }) setDecryptionStatus({ status: "RESET", message: "", log: "" })
} }
isOpen={decryptionStatus.status !== "RESET"}
/> />
{isInitialLoading && ( {isInitialLoading && (
+2 -2
View File
@@ -183,8 +183,8 @@ export default function Reader() {
<LogModal <LogModal
isOpen={!!warning} isOpen={!!warning}
onClose={() => setWarning(null)} onClose={() => setWarning(null)}
message={warning?.message} message={warning?.message || ""}
log={warning?.log} log={warning?.log || ""}
status="WARN" status="WARN"
/> />