Fix type error (#27217)
This commit is contained in:
@@ -237,7 +237,7 @@ const ChatWrapper = () => {
|
||||
|
||||
return (
|
||||
<Chat
|
||||
appData={appData}
|
||||
appData={appData || undefined}
|
||||
config={appConfig}
|
||||
chatList={messageList}
|
||||
isResponding={respondingState}
|
||||
|
||||
@@ -122,7 +122,7 @@ const Flowchart = (props: FlowchartProps) => {
|
||||
const containerRef = useRef<HTMLDivElement>(null)
|
||||
const chartId = useRef(`mermaid-chart-${Math.random().toString(36).slice(2, 11)}`).current
|
||||
const [isLoading, setIsLoading] = useState(true)
|
||||
const renderTimeoutRef = useRef<NodeJS.Timeout>()
|
||||
const renderTimeoutRef = useRef<NodeJS.Timeout | undefined>(undefined)
|
||||
const [errMsg, setErrMsg] = useState('')
|
||||
const [imagePreviewUrl, setImagePreviewUrl] = useState('')
|
||||
|
||||
@@ -187,7 +187,7 @@ const Flowchart = (props: FlowchartProps) => {
|
||||
}, [])
|
||||
|
||||
// Update theme when prop changes, but allow internal override.
|
||||
const prevThemeRef = useRef<string>()
|
||||
const prevThemeRef = useRef<string | undefined>(undefined)
|
||||
useEffect(() => {
|
||||
// Only react if the theme prop from the outside has actually changed.
|
||||
if (props.theme && props.theme !== prevThemeRef.current) {
|
||||
|
||||
@@ -10,7 +10,7 @@ export enum Priority {
|
||||
topPriority = 'top-priority',
|
||||
}
|
||||
|
||||
export type BasicPlan = Plan.sandbox | Plan.professional | Plan.team | Plan.enterprise
|
||||
export type BasicPlan = Plan.sandbox | Plan.professional | Plan.team
|
||||
|
||||
export type PlanInfo = {
|
||||
level: number
|
||||
|
||||
Reference in New Issue
Block a user