mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
fix(ui): guard Node reference for SSR compatibility in isTriggerTitle (#5509)
This commit is contained in:
parent
96975ef8d6
commit
210b3e905b
@ -13,7 +13,9 @@ export type TriggerTitle = {
|
||||
}
|
||||
|
||||
const isTriggerTitle = (val: any): val is TriggerTitle => {
|
||||
return typeof val === "object" && val !== null && "title" in val && !(val instanceof Node)
|
||||
return (
|
||||
typeof val === "object" && val !== null && "title" in val && (typeof Node === "undefined" || !(val instanceof Node))
|
||||
)
|
||||
}
|
||||
|
||||
export interface BasicToolProps {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user