mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 06:05:50 +08:00
ts error
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
||||
HTMLPreview,
|
||||
HTMLPreviewHander,
|
||||
} from "./artifacts";
|
||||
import { Plugin } from "../constant";
|
||||
import { ArtifactsPlugin } from "../constant";
|
||||
import { useChatStore } from "../store";
|
||||
import { IconButton } from "./button";
|
||||
|
||||
@@ -95,7 +95,7 @@ export function PreCode(props: { children: any }) {
|
||||
}, 600);
|
||||
|
||||
const enableArtifacts = useMemo(
|
||||
() => plugins?.includes(Plugin.Artifacts),
|
||||
() => plugins?.includes(ArtifactsPlugin.Artifacts),
|
||||
[plugins],
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user