From 60779558025fad616e39107778feb5c997242c5a Mon Sep 17 00:00:00 2001 From: Hugo FOYART <11079152+foyarash@users.noreply.github.com> Date: Fri, 4 Oct 2024 11:06:36 +0200 Subject: [PATCH] fix: display correctly boolean value in list (#468) --- .changeset/dull-cows-thank.md | 5 +++++ packages/next-admin/src/components/Cell.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/dull-cows-thank.md diff --git a/.changeset/dull-cows-thank.md b/.changeset/dull-cows-thank.md new file mode 100644 index 00000000..dcb4d5d9 --- /dev/null +++ b/.changeset/dull-cows-thank.md @@ -0,0 +1,5 @@ +--- +"@premieroctet/next-admin": patch +--- + +fix: default boolean display (#466) diff --git a/packages/next-admin/src/components/Cell.tsx b/packages/next-admin/src/components/Cell.tsx index e6730b6f..e7f9a683 100644 --- a/packages/next-admin/src/components/Cell.tsx +++ b/packages/next-admin/src/components/Cell.tsx @@ -83,7 +83,7 @@ export default function Cell({ cell, formatter, copyable }: Props) { "bg-nextadmin-background-subtle dark:bg-dark-nextadmin-background-subtle text-nextadmin-brand-subtle dark:text-dark-nextadmin-content-subtle" )} > -

{cellValue}

+

{cellValue?.toString()}

); }