Skip to content

Commit 2e6f903

Browse files
committed
fix lint issues
1 parent 94b3df7 commit 2e6f903

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src-ts/lib/portal/Portal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ interface PortalProps {
1010
}
1111

1212
const Portal: FC<PortalProps> = (props: PortalProps) => {
13-
const portalNode: HTMLElement | null = props.portalId
13+
const portalNode: HTMLElement | null | undefined = props.portalId
1414
? document.getElementById(props.portalId)
15-
: props.portalNode ?? null
15+
: props.portalNode ?? undefined
1616

1717
const defaultPortalNode: HTMLElement = useMemo(() => {
1818
if (props.portalId || props.portalNode) {

0 commit comments

Comments
 (0)