From 51a6d19ceb649e615f028d9290db5bc2786238c6 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Thu, 21 Sep 2023 18:14:46 +0200 Subject: [PATCH] upgraded --- web/src/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/main.js b/web/src/main.js index 37e0e8c2..ceb61905 100644 --- a/web/src/main.js +++ b/web/src/main.js @@ -304,9 +304,9 @@ export const store = createStore({ .then(response => { console.log("HERE WE GO") let models_zoo = response.data + models_zoo = models_zoo.filter(model => model.variants && model.variants.length>0); console.log("models_zoo") console.log(models_zoo) - models_zoo = models_zoo.filter(model => model.variants && model.variants.length>0); if(this.state.sort_type==0){ // Sort by date models_zoo.sort((a, b) => { const dateA = new Date(a.last_commit_time); @@ -384,6 +384,9 @@ export const store = createStore({ model.selected = false; } }); + console.log("models_zoo") + console.log(models_zoo) + commit('setModelsZoo', models_zoo) this.state.refreshingModelsList=false; })