[O] Only add home if not exist

This commit is contained in:
Hykilpikonna
2019-12-25 17:55:40 -05:00
parent 481adc5bd7
commit a9b20914fb
+4 -1
View File
@@ -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: []});
}
}
/**