Skip to content

Commit 95f9ded

Browse files
committed
Fixed the model
1 parent e858e31 commit 95f9ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/javascript-api/src/lib/model/graphql-response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface GraphqlError {
2121
export function isErrorResponse<T>(
2222
response: GraphqlResponse<T>,
2323
): response is ErrorResponse {
24-
return Object.prototype.hasOwnProperty.call(response, 'error');
24+
return Object.prototype.hasOwnProperty.call(response, 'errors');
2525
}
2626

2727
export function isSuccessResponse<T>(

0 commit comments

Comments
 (0)