Skip to content

Cannot read property of null - reading "indexOf" #21

@Hunscuzzy

Description

@Hunscuzzy

When we open an entry page like Revenue, we have an error in the browser console:
Image

It's probably coming from useByIdQuery :

export const useByIdQuery = (
  collectionName: Collections,
  id: string,
  options?: UseQueryOptions
) => {
  return useQuery(
    [collectionName, id],
    () => fetchById(collectionName, id),
    options as any
  );
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions