From a9b20914fb37e2979f6300a9ca049728cb714ceb Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 25 Dec 2019 17:55:40 -0500 Subject: [PATCH] [O] Only add home if not exist --- src/App.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.ts b/src/App.ts index 8562188..f02d62b 100644 --- a/src/App.ts +++ b/src/App.ts @@ -116,7 +116,10 @@ export default class App extends Vue this.artworks.sort((a, b) => b.date.getTime() - a.date.getTime()); // Add home as a type - this.config.types.unshift({type: 'Home', posts: []}); + if (this.config.types[0].type != 'Home') + { + this.config.types.unshift({type: 'Home', posts: []}); + } } /**