split-pane-react
split-pane-react copied to clipboard
TS2322: Type 'Element | undefined' is not assignable to type 'Element'. Type 'undefined' is not assignable to type 'ReactElement<any, any>'
thanks very much for your project
i hope if the currentSelectedTask === undefine
, do not render the second <Pane>
but i got a ts error:
TS2322: Type 'Element | undefined' is not assignable to type 'Element'. Type 'undefined' is not assignable to type 'ReactElement<any, any>