) {
navigate(routes.data.entity.edit(other.entity.name, row.id));
}
let handleClickNew: any;
try {
if (other.entity.type !== "system") {
const ref = relation.getReferenceQuery(other.entity, id, other.reference);
handleClickNew = () => {
navigate(routes.data.entity.create(other.entity.name), {
query: ref.where,
});
//navigate(routes.data.entity.create(other.entity.name) + `?${query}`);
};
}
} catch (e) {}
if (!$q.data) {
return null;
}
const isUpdating = $q.isValidating || $q.isLoading;
return (
{
setSearch((s) => ({
...s,
offset: (page - 1) * s.limit,
}));
}}
/>
);
}