-
+
+
+
diff --git a/frontend/static/js/book-editor.js b/frontend/static/js/book-editor.js
index 45afce4..8aa18d1 100644
--- a/frontend/static/js/book-editor.js
+++ b/frontend/static/js/book-editor.js
@@ -237,7 +237,7 @@ window.bookEditorApp = () => ({
return window.api.updateDocument(doc.id, {
sort_order: doc.sort_order,
- matched_pdf_id: doc.matched_pdf_id || null
+ matched_pdf_id: doc.matched_pdf_id === "" ? null : doc.matched_pdf_id
});
});