fix: resolved error in org settings and integrations page alert hidden on no integrations

This commit is contained in:
Akhil Mohan
2023-11-02 14:39:13 +05:30
parent 1be46b5e57
commit abbeb67b95
9 changed files with 91 additions and 98 deletions
@@ -21,7 +21,7 @@ export const withPermission = <T extends {}, J extends TOrgPermission>(
{ action, subject, className, containerClassName }: Props<Generics<J>["abilities"]>
) => {
const HOC = (hocProps: T) => {
const permission = useOrgPermission();
const { permission } = useOrgPermission();
// akhilmhdh: Set as any due to casl/react ts type bug
// REASON: casl due to its type checking can't seem to union even if union intersection is applied