generated from Luis/nextjs-python-web-template
Trying to fix attach entity
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useContext } from "react";
|
||||
import { AppContext } from "./useAppContext";
|
||||
|
||||
const useGetEntityByName = (nameOrDid: string) => {
|
||||
const useGetEntityByNameOrDid = (nameOrDid: string) => {
|
||||
const { data } = useContext(AppContext);
|
||||
const allEntities = data.allEntities;
|
||||
|
||||
@@ -16,4 +16,4 @@ const useGetEntityByName = (nameOrDid: string) => {
|
||||
return { entity, isLoading: false };
|
||||
};
|
||||
|
||||
export default useGetEntityByName;
|
||||
export default useGetEntityByNameOrDid;
|
||||
@@ -36,7 +36,6 @@ const CustomTable = ({ configuration, data, loading, tkey }: ICustomTable) => {
|
||||
// cover use case if we want to render a component
|
||||
if (render) renderedValue = render(value);
|
||||
|
||||
console.log("renderTableCell key", cellKey);
|
||||
return (
|
||||
<StyledTableCell key={cellKey} align="left">
|
||||
{renderedValue}
|
||||
|
||||
Reference in New Issue
Block a user