Commit bb8d3604 by heheer Committed by GitHub

fix cite visibility (#6153)

parent 4fbe27f2
...@@ -58,7 +58,7 @@ const ResponseTags = ({ ...@@ -58,7 +58,7 @@ const ResponseTags = ({
} = useMemo(() => { } = useMemo(() => {
return { return {
...addStatisticalDataToHistoryItem(historyItem), ...addStatisticalDataToHistoryItem(historyItem),
...(isShowCite ...(!isShowCite
? { ? {
totalQuoteList: [] totalQuoteList: []
} }
......
...@@ -32,6 +32,7 @@ const PlaygroundVisibilityConfig = ({ appId }: { appId: string }) => { ...@@ -32,6 +32,7 @@ const PlaygroundVisibilityConfig = ({ appId }: { appId: string }) => {
const showCite = watch('showCite'); const showCite = watch('showCite');
const showFullText = watch('showFullText'); const showFullText = watch('showFullText');
const canDownloadSource = watch('canDownloadSource'); const canDownloadSource = watch('canDownloadSource');
const showRunningStatus = watch('showRunningStatus');
const playgroundLink = useMemo(() => { const playgroundLink = useMemo(() => {
if (typeof window !== 'undefined') { if (typeof window !== 'undefined') {
...@@ -114,6 +115,7 @@ const PlaygroundVisibilityConfig = ({ appId }: { appId: string }) => { ...@@ -114,6 +115,7 @@ const PlaygroundVisibilityConfig = ({ appId }: { appId: string }) => {
{...register('showRunningStatus', { {...register('showRunningStatus', {
onChange: autoSave onChange: autoSave
})} })}
isChecked={showRunningStatus}
/> />
</Flex> </Flex>
<Flex> <Flex>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment