Skip to content
Snippets Groups Projects
Commit e4ccab21 authored by leandro's avatar leandro
Browse files

fix structure undefined

parent c6285db9
No related branches found
No related tags found
No related merge requests found
...@@ -258,7 +258,7 @@ export default { ...@@ -258,7 +258,7 @@ export default {
(el) => el.slug === this.$route.params.feature_type_slug (el) => el.slug === this.$route.params.feature_type_slug
); );
} }
return null; return {};
}, },
feature_type_features: function () { feature_type_features: function () {
...@@ -391,19 +391,21 @@ export default { ...@@ -391,19 +391,21 @@ export default {
} }
} }
}, },
// watch:{ watch:{
// 'feature_type_features'(newValue){ 'structure'(newValue){
// console.log(newValue) console.log(newValue)
// if (newValue){ if (newValue){
// this.featuresLoading = false; this.$store.dispatch("feature_type/GET_IMPORTS", this.structure.slug);
// } }
// } }
// }, },
created() { created() {
if (!this.project) { if (!this.project) {
this.$store.dispatch("GET_PROJECT_INFO", this.$route.params.slug); this.$store.dispatch("GET_PROJECT_INFO", this.$route.params.slug);
} }
this.$store.dispatch("feature_type/GET_IMPORTS", this.structure.slug); // if (this.structure) {
// this.$store.dispatch("feature_type/GET_IMPORTS", this.structure.slug);
// }
this.setCurrentFeatureTypeSlug(); this.setCurrentFeatureTypeSlug();
// .then(res => resolve(res)) // .then(res => resolve(res))
// .catch(err => reject(err)); // .catch(err => reject(err));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment