fix: edit cookie dialog not resetting when create is closed
This commit is contained in:
@@ -147,7 +147,12 @@ const pasteIcon = refAutoReset<typeof IconClipboard | typeof IconCheck>(
|
||||
watch(
|
||||
() => props.entry,
|
||||
() => {
|
||||
if (props.entry?.type !== "edit") return
|
||||
if (!props.entry) return
|
||||
|
||||
if (props.entry.type === "create") {
|
||||
rawCookieString.value = ""
|
||||
return
|
||||
}
|
||||
|
||||
rawCookieString.value = props.entry.currentCookieEntry
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user