From 626dcf320602c5e0a23c7c1b5fcfcbc8eb4aa8c1 Mon Sep 17 00:00:00 2001 From: Pascal Delange Date: Tue, 2 Apr 2024 22:36:23 +0200 Subject: [PATCH] fix: custom list value deletion was broken fix --- .../app-builder/src/routes/_builder+/lists+/$listId.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/app-builder/src/routes/_builder+/lists+/$listId.tsx b/packages/app-builder/src/routes/_builder+/lists+/$listId.tsx index dfb18107..e03c4921 100644 --- a/packages/app-builder/src/routes/_builder+/lists+/$listId.tsx +++ b/packages/app-builder/src/routes/_builder+/lists+/$listId.tsx @@ -42,12 +42,12 @@ export const handle = { i18n: ['lists', 'common'] satisfies Namespace, }; -type ListValues = { +type CustomListValue = { id: string; value: string; }; -const columnHelper = createColumnHelper(); +const columnHelper = createColumnHelper(); export default function Lists() { const customList = useLoaderData(); @@ -63,16 +63,15 @@ export default function Lists() { size: 500, sortingFn: 'text', enableSorting: true, - cell: ({ getValue }) => { + cell: ({ getValue, row }) => { const value = getValue(); return (

{value}

- {canManageListItem ? (