From 9fc005032c5b578fe5f360844ba5db69d870fb78 Mon Sep 17 00:00:00 2001
From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com>
Date: Tue, 8 Oct 2024 09:20:55 +0200
Subject: [PATCH] Fix for empty user default tab after creation (#628)
---
src/resources/users.tsx | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/resources/users.tsx b/src/resources/users.tsx
index 2e33df4..dab6fe4 100644
--- a/src/resources/users.tsx
+++ b/src/resources/users.tsx
@@ -47,6 +47,7 @@ import {
TopToolbar,
NumberField,
useListContext,
+ Identifier,
} from "react-admin";
import { Link } from "react-router-dom";
@@ -112,7 +113,10 @@ export const UserList = (props: ListProps) => (
actions={}
pagination={}
>
- }>
+ `/${resource}/${id}`}
+ bulkActionButtons={}
+ >
@@ -153,7 +157,12 @@ const UserEditActions = () => {
};
export const UserCreate = (props: CreateProps) => (
-
+ {
+ return `${resource}/${id}`;
+ }}
+ >