mirror of
https://github.com/wassname/talk.git
synced 2026-07-31 12:50:48 +08:00
Remove dependency on wrapResponse
This commit is contained in:
@@ -109,7 +109,7 @@ export function mergeDocuments(documents) {
|
||||
export function getResponseErrors(mutationResult) {
|
||||
const result = [];
|
||||
Object.keys(mutationResult.data).forEach((response) => {
|
||||
const errors = mutationResult.data[response].errors;
|
||||
const errors = mutationResult.data[response] && mutationResult.data[response].errors;
|
||||
if (errors && errors.length) {
|
||||
result.push(...errors);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user