Add existing book fields in "create book" form
This commit is contained in:
@@ -191,10 +191,7 @@ export function genericPayloadCall(apiRoute, object, method) {
|
||||
}
|
||||
|
||||
export function extractFormErrorFromField(fieldName, errors) {
|
||||
if (errors === null) {
|
||||
return ''
|
||||
}
|
||||
if (errors.value == null) {
|
||||
if (errors == null) {
|
||||
return ''
|
||||
}
|
||||
console.log(errors.value)
|
||||
|
||||
Reference in New Issue
Block a user