Skip to content

Commit

Permalink
cellify: uncellify uses consolidatedValue as getter by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hbbio committed May 26, 2024
1 parent 8e48ca8 commit d56f679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cellify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export type UncellifyOptions = {
*/
export const uncellify = async <T>(
v: T | AnyCell<T>,
options: UncellifyOptions = { getter: (cell) => cell.value }
options: UncellifyOptions = { getter: (cell) => cell.consolidatedValue }
): Promise<Uncellified<T>> => {
const value = v instanceof Cell ? await options.getter(v) : v;
if (value instanceof Error) {
Expand Down

0 comments on commit d56f679

Please sign in to comment.