mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 08:56:52 +00:00
feat: fix null pointer handling in log modals
This commit is contained in:
@@ -309,6 +309,7 @@ export default function Editor() {
|
||||
onClose={() =>
|
||||
setDecryptionStatus({ status: "RESET", message: "", log: "" })
|
||||
}
|
||||
isOpen={decryptionStatus.status !== "RESET"}
|
||||
/>
|
||||
|
||||
{isInitialLoading && (
|
||||
|
||||
@@ -183,8 +183,8 @@ export default function Reader() {
|
||||
<LogModal
|
||||
isOpen={!!warning}
|
||||
onClose={() => setWarning(null)}
|
||||
message={warning?.message}
|
||||
log={warning?.log}
|
||||
message={warning?.message || ""}
|
||||
log={warning?.log || ""}
|
||||
status="WARN"
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user