mirror of
https://github.com/wassname/talk.git
synced 2026-10-05 13:20:38 +08:00
Correct fragment names
This commit is contained in:
1 parent
007b9604af
commit
995dd9fd60
1 file changed
+1
-2
@@ -115,8 +115,7 @@ export function getResponseErrors(mutationResult) {
|
||||
|
||||
export function createDefaultResponseFragments(...names) {
|
||||
const result = {};
|
||||
names.forEach((name) => {
|
||||
const response = `${name}Response`;
|
||||
names.forEach((response) => {
|
||||
result[response] = gql`
|
||||
fragment Coral_${response} on ${response} {
|
||||
errors {
|
||||
|
||||
Reference in new issue
Block a user