Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Bugfix wrong last date check
Signed-off-by: Corentin Mors <[email protected]>
  • Loading branch information
Corentin Mors committed Oct 27, 2020
commit 493ae6a729ba24f296edf590e89940016a538666
6 changes: 3 additions & 3 deletions js/photos-5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/photos-5.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/photos-main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/photos-main.js.map

Large diffs are not rendered by default.

6 changes: 1 addition & 5 deletions src/views/Timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,7 @@ export default {
return this.fileList.flatMap((file, index) => {
const finalArray = []
const currentSection = this.getFormatedDate(file.lastmod, 'YYYY MMMM')
if (
currentSection
!== this.getFormatedDate(this.timeline[index - 1]?.lastmod, 'YYYY MMMM')
&& (this.lastSection !== currentSection)
) {
if (this.lastSection !== currentSection) {
finalArray.push({
id: `title-${index}`,
injected: {
Expand Down