fix: logout error
All checks were successful
continuous-integration/drone/pr Build is passing

This fixes the error after logging out: "TypeError: Cannot read properties of null (reading 'deletionScheduledAt')"
This commit is contained in:
Dominik Pschenitschni 2021-10-26 14:53:40 +02:00
parent 27c8bb3d19
commit ca9542343e
Signed by: dpschen
GPG Key ID: B257AC0149F43A77

View File

@ -129,7 +129,7 @@ export default {
return state.namespaces.namespaces[0].lists.length > 0
},
loading: state => state[LOADING] && state[LOADING_MODULE] === 'tasks',
deletionScheduledAt: state => parseDateOrNull(state.auth.info.deletionScheduledAt),
deletionScheduledAt: state => parseDateOrNull(state.auth.info?.deletionScheduledAt),
}),
},
methods: {