diff --git a/src/services/caldavToken.js b/src/services/caldavToken.js index 2c124ade..6e439765 100644 --- a/src/services/caldavToken.js +++ b/src/services/caldavToken.js @@ -12,8 +12,10 @@ export default class CaldavTokenService extends AbstractService { } processModel(model) { - model.created = formatISO(new Date(model.created)) - return model + return { + ...model, + created: formatISO(new Date(model.created)), + } } modelFactory(data) {