linefusion / indirectus

20 stars 6 forks source link

TypeError: Cannot read properties of null (reading 'one_collection') #3

Closed nexthis closed 9 months ago

nexthis commented 10 months ago

In https://github.com/linefusion/indirectus/blob/main/packages/cli/types/relationships.ts at line 117

when you have field = public_favicon and collection = directus_settings throw error Cannot read properties of null (reading 'one_collection')

to quick fix you need to add if (relationship.collection === collection && relationship.field === field && relationship.field !== 'public_favicon')

directus:10.7.0

HarunKilic commented 9 months ago

In https://github.com/linefusion/indirectus/blob/main/packages/cli/types/relationships.ts at line 117

when you have field = public_favicon and collection = directus_settings throw error Cannot read properties of null (reading 'one_collection')

to quick fix you need to add if (relationship.collection === collection && relationship.field === field && relationship.field !== 'public_favicon')

directus:10.7.0

I've got same issue, did u manage to find a temporary solution?

WoLfulus commented 9 months ago

fixed in 0.2.2+

HarunKilic commented 9 months ago

Still having the issue :/