Skip to content

Commit

Permalink
fix(admin-ui): Fix error when creating new Channel
Browse files Browse the repository at this point in the history
michaelbromley committed Dec 9, 2020
1 parent c9a0bcc commit b38e35d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -101,12 +101,12 @@ export const clientResolvers: ResolverDefinition = {
const previous = cache.readQuery<GetUserStatus.Query>({ query: GET_USER_STATUS })!;
const data = {
userStatus: {
__typename: 'UserStatus' as const,
...previous.userStatus,
channels: args.channels,
},
};
cache.writeQuery({ query: GET_USER_STATUS, data });
return { ...previous.userStatus, ...data.userStatus };
return data.userStatus;
},
},
};

0 comments on commit b38e35d

Please sign in to comment.