create record wip
This commit is contained in:
@@ -34,7 +34,7 @@ export function post(url, postData, callback) {
|
||||
// Turbo.visit(link(res.data.redirect));
|
||||
return;
|
||||
}
|
||||
const errors = makeErrors(res.data.errors);
|
||||
const errors = makeErrors(res.data?.errors ?? []);
|
||||
if (errors.isNotEmpty()) {
|
||||
callback?.(null, errors);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user