mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-19 17:42:27 +03:00
Use correct Query name (#575)
This commit is contained in:
parent
aa252612c1
commit
eae583209e
@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|||||||
import { getOperationName } from '@apollo/client/utilities';
|
import { getOperationName } from '@apollo/client/utilities';
|
||||||
import styled from '@emotion/styled';
|
import styled from '@emotion/styled';
|
||||||
|
|
||||||
import { GET_COMMENT_THREADS_BY_TARGETS } from '@/comments/services';
|
import { GET_COMMENT_THREAD } from '@/comments/services';
|
||||||
import { PropertyBox } from '@/ui/components/property-box/PropertyBox';
|
import { PropertyBox } from '@/ui/components/property-box/PropertyBox';
|
||||||
import { PropertyBoxItem } from '@/ui/components/property-box/PropertyBoxItem';
|
import { PropertyBoxItem } from '@/ui/components/property-box/PropertyBoxItem';
|
||||||
import { IconArrowUpRight } from '@/ui/icons/index';
|
import { IconArrowUpRight } from '@/ui/icons/index';
|
||||||
@ -115,9 +115,7 @@ export function CommentThread({
|
|||||||
commentThreadId: commentThreadId,
|
commentThreadId: commentThreadId,
|
||||||
commentThreadTitle: title ?? '',
|
commentThreadTitle: title ?? '',
|
||||||
},
|
},
|
||||||
refetchQueries: [
|
refetchQueries: [getOperationName(GET_COMMENT_THREAD) ?? ''],
|
||||||
getOperationName(GET_COMMENT_THREADS_BY_TARGETS) ?? '',
|
|
||||||
],
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return debounce(updateTitle, 200);
|
return debounce(updateTitle, 200);
|
||||||
|
Loading…
Reference in New Issue
Block a user