Skip to content

Commit

Permalink
Merge pull request #5857 from haiwen/fix/ai-qa-search-error
Browse files Browse the repository at this point in the history
fix/ai: fix qa hit error sdoc
  • Loading branch information
JoinTyang authored Dec 25, 2023
2 parents 473aa29 + a5b8cac commit adb07fb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion frontend/src/components/search/ai-search-ask.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import isHotkey from 'is-hotkey';
import { MarkdownViewer } from '@seafile/seafile-editor';
import { seafileAPI } from '../../utils/seafile-api';
import { gettext } from '../../utils/constants';
import toaster from '../toast';
Expand Down Expand Up @@ -173,7 +174,16 @@ export default class AISearchAsk extends Component {
<AISearchRobot/>
</div>
<div className="ai-search-ask-body-right">
<div>{this.state.answeringResult}</div>
{/* <div>{this.state.answeringResult}</div>s */}

{/* markdown viewer */}
<div className="ai-search-ask-body-markdown">
<MarkdownViewer
value={this.state.answeringResult}
isShowOutline={false}
/>
</div>

<AISearchHelp />
{this.state.hitFiles.length > 0 &&
<AISearchRefrences
Expand Down

0 comments on commit adb07fb

Please sign in to comment.