WatWowMap / ReactMap

Pokemon GO Map frontend built with React
MIT License
129 stars 64 forks source link

Call skipUndefined() method to ignore the undefined values. [ 'gyms' ] undefined #406

Closed svenberg closed 2 years ago

svenberg commented 2 years ago

I just pulled latest develop, I did yarn migrate in case something happened since last weeks.. then yarn install ignore optional and yarn build. Restarted ReactMap (pm2 ecosystem).

Now I get these errors about every second in the error logs: GraphQL Error: undefined passed as argument #1 for 'where' operation. Call skipUndefined() method to ignore the undefined values. [ 'gyms' ] undefined

Since it mentions "gyms" I went to local.json and removed "gyms" from always enabled perms as well as put it to false for access, rebuilt, restarted - error still thrown. I see PR317 mentions skipUndefined() but I do not know if this is related or not.

image

TurtIeSocks commented 2 years ago

This is just due to a new field that was added and your users still using old JavaScript client side (they need to refresh). It will eventually sort itself out, in the meantime it doesn't cause any issues.