mirror of
https://github.com/thepaperpilot/Planar-Pioneers.git
synced 2024-11-25 01:41:44 +00:00
Bind uncached functions in processComputable
This commit is contained in:
parent
5400775fc1
commit
ff9fa0bf07
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@ export function processComputable<T, S extends keyof ComputableKeysOf<T>>(
|
|||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
||||
// @ts-ignore
|
||||
obj[key] = computed(computable.bind(obj));
|
||||
} else if (isFunction(computable)) {
|
||||
obj[key] = computable.bind(obj);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue