mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 19:49:16 +00:00
Fix bug in new install.
This commit is contained in:
@@ -38,6 +38,7 @@ const DateSelector = ({ filterDate, setFilterDate }: DateSelectorProps) => {
|
||||
]
|
||||
|
||||
if (data) {
|
||||
if (data.myMedia.length != 0) {
|
||||
const dateStr = data.myMedia[0].date
|
||||
const date = new Date(dateStr)
|
||||
const now = new Date()
|
||||
@@ -56,6 +57,7 @@ const DateSelector = ({ filterDate, setFilterDate }: DateSelectorProps) => {
|
||||
}))
|
||||
items = [...items, ...yearItems]
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<fieldset>
|
||||
|
||||
Reference in New Issue
Block a user