Fix edit modal error after successful submit

This commit is contained in:
thePR0M3TH3AN committed 2025-10-26 12:07:17 -04:00
1 parent 4e401b1f5a
commit cf1f966f60
2 files changed
+46 -3

No files matched your search

+7 -3
View File
@@ -791,12 +791,16 @@ export class EditModal {
return;
}
if (!this.activeVideo || !this.root) {
this.showError("No video selected for editing.");
const contextVideo = this.activeVideo || this.pendingSubmitVideo || null;
if (!contextVideo || !this.root) {
if (this.isVisible) {
this.showError("No video selected for editing.");
}
return;
}
this.setSubmitState({ pending: true, video: this.activeVideo });
this.setSubmitState({ pending: true, video: contextVideo });
const fieldValue = (key) => {
const input = this.fields[key];