Skip to content

Tankōbon / lib/book-edit / formToUpdate

Function: formToUpdate() ​

formToUpdate(entry, form): MetadataUpdate

Defined in: lib/book-edit.ts:135

The update the form produces: only the fields that differ from the entry. An emptied field is cleared; a changed title is locked (see LibraryEntry.titleLocked); the language is lowercased; the credits, blank rows dropped, replace the entry's whole list when they changed. Meant for a form validateForm() accepted.

Parameters ​

entry ​

LibraryEntry

form ​

BookForm

Returns ​

MetadataUpdate