Skip to content
代码片段 群组 项目
未验证 提交 30238416 编辑于 作者: Paul Gascou-Vaillancourt's avatar Paul Gascou-Vaillancourt 提交者: GitLab
浏览文件

Merge branch 'refetch_duo_chat_messages_after_clear' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -25,6 +25,7 @@ import { ...@@ -25,6 +25,7 @@ import {
} from 'ee/ai/constants'; } from 'ee/ai/constants';
import getAiSlashCommands from 'ee/ai/graphql/get_ai_slash_commands.query.graphql'; import getAiSlashCommands from 'ee/ai/graphql/get_ai_slash_commands.query.graphql';
import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import { fetchPolicies } from '~/lib/graphql';
import { import {
TANUKI_BOT_TRACKING_EVENT_NAME, TANUKI_BOT_TRACKING_EVENT_NAME,
MESSAGE_TYPES, MESSAGE_TYPES,
...@@ -88,6 +89,7 @@ export default { ...@@ -88,6 +89,7 @@ export default {
skip() { skip() {
return !this.duoChatGlobalState.isShown; return !this.duoChatGlobalState.isShown;
}, },
fetchPolicy: fetchPolicies.NETWORK_ONLY,
result({ data }) { result({ data }) {
if (data?.aiMessages?.nodes) { if (data?.aiMessages?.nodes) {
this.setMessages(data.aiMessages.nodes); this.setMessages(data.aiMessages.nodes);
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册