Skip to content

Commit

Permalink
代码安全优化
Browse files Browse the repository at this point in the history
  • Loading branch information
code-october committed Oct 11, 2024
1 parent 8fd843d commit 4a1319f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ function CustomCode(props: { children: any; className?: string }) {
const session = chatStore.currentSession();
const config = useAppConfig();
const enableCodeFold =
session.mask?.enableCodeFold != false && config.enableCodeFold;
session.mask?.enableCodeFold !== false && config.enableCodeFold;

const ref = useRef<HTMLPreElement>(null);
const [collapsed, setCollapsed] = useState(true);
Expand Down Expand Up @@ -212,7 +212,7 @@ function CustomCode(props: { children: any; className?: string }) {
>
{props.children}
</code>

{renderShowMoreButton()}
</>
);
Expand Down

0 comments on commit 4a1319f

Please sign in to comment.