Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-lem authored and gmazoyer committed Jul 18, 2024
1 parent 60349cd commit 8b0579e
Show file tree
Hide file tree
Showing 2 changed files with 708 additions and 734 deletions.
10 changes: 5 additions & 5 deletions frontend/app/src/hooks/useObjectDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useAtomValue } from "jotai";
import useQuery from "@/hooks/useQuery";
import { genericsState, IModelSchema } from "@/state/atoms/schema.atom";
import { getObjectDetailsPaginated } from "@/graphql/queries/objects/getObjectDetails";
import { ACCOUNT_OBJECT, PROFILE_KIND, TASK_OBJECT } from "@/config/constants";
import { PROFILE_KIND, TASK_OBJECT } from "@/config/constants";
import { getSchemaObjectColumns, getTabs } from "@/utils/getSchemaObjectColumns";
import { isGeneric } from "@/utils/common";

Expand All @@ -24,10 +24,10 @@ export const useObjectDetails = (schema: IModelSchema, objectId: string) => {
objectid: objectId,
// Do not query profiles on profiles objects
queryProfiles:
!profileGenericSchema?.used_by?.includes(schema?.kind!) &&
schema?.kind !== PROFILE_KIND &&
!isGeneric(schema) &&
schema?.generate_profile
!profileGenericSchema?.used_by?.includes(schema?.kind!) &&
schema?.kind !== PROFILE_KIND &&
!isGeneric(schema) &&
schema?.generate_profile,
})
: // Empty query to make the gql parsing work
// TODO: Find another solution for queries while loading schema
Expand Down
Loading

0 comments on commit 8b0579e

Please sign in to comment.