dry-scarletD
Refine3y ago
12 replies
dry-scarlet

After adding a parent to my menuItem in the sidebar the create: AddEmployee is giving 404 error

I have an element called My Business which is a parent element in the sidebar and I have under it Employees and Roles.

{
              name: "business",
              key: "business",
              icon: <ArchitectureOutlined 
                color="action"
              />,
              meta: {
                label: "My Business",
              },
            },

            {
              name: "employees",
              list: EmployeeList,
              create: AddEmployee,
              icon: <PeopleIcon />,
              meta: {
                parent: "business",
              },
            },
            //Roles
            {
              name: "roles",
              list: ManageRoles,
              icon: <StarOutlineIcon />,
              meta: {
                parent: "business",
              },
            },

However the AddEmployee showing 404 if its have parent element
Was this page helpful?