Update src/thunk.ts

pull/996/head
Jan van Brügge 3 years ago committed by GitHub
parent e8b20378b9
commit 4f95f246f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -16,7 +16,7 @@ export interface ThunkFn {
}
function copyToThunk(vnode: VNode, thunk: VNode): void {
const ns = thunk.data ? thunk.data.ns : null;
const ns = thunk.data?.ns;
(vnode.data as VNodeData).fn = (thunk.data as VNodeData).fn;
(vnode.data as VNodeData).args = (thunk.data as VNodeData).args;
thunk.data = vnode.data;

Loading…
Cancel
Save