projectcaluma / ember-caluma

Ember.js addons for Caluma
https://docs.caluma.io/ember-caluma/
GNU Lesser General Public License v3.0
18 stars 22 forks source link

add null check for dates from raw data #1826

Closed derrabauke closed 2 years ago

derrabauke commented 2 years ago

https://github.com/projectcaluma/ember-caluma/blob/d7d5c665ba6406f57fa0271657dce108fa82cf07/packages/core/addon/caluma-query/models/index.js#L17

there needs to be a check if this.raw[name] !== null, otherwise is will create a date object with new Date(null).valueOf() === 0

anehx commented 2 years ago

:tada: This issue has been resolved in version @projectcaluma/ember-core-v11.0.0-beta.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: