Add notifications overview (#414)
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/414 Co-authored-by: konrad <konrad@kola-entertainments.de> Co-committed-by: konrad <konrad@kola-entertainments.de>
This commit is contained in:
6
src/helpers/parseDateOrNull.js
Normal file
6
src/helpers/parseDateOrNull.js
Normal file
@ -0,0 +1,6 @@
|
||||
export const parseDateOrNull = date => {
|
||||
if (date && !date.startsWith('0001')) {
|
||||
return new Date(date)
|
||||
}
|
||||
return null
|
||||
}
|
Reference in New Issue
Block a user