Skip to content

Commit

Permalink
Added import mapActions to resources view to fix bug that wouldn't lo…
Browse files Browse the repository at this point in the history
…ad page
  • Loading branch information
elrumo committed May 25, 2021
1 parent 6e31c9a commit ab79d3a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion website/macos-big-sur-icons/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,6 @@ export default {
body.classList.add('coral--light')
parent.darkMode = false
}
},
onDialogOpen(){
Expand Down
1 change: 0 additions & 1 deletion website/macos-big-sur-icons/src/store/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ export default new Vuex.Store({

},


getters: {

getBlogPost(store, blogData){
Expand Down
5 changes: 3 additions & 2 deletions website/macos-big-sur-icons/src/views/ResourceView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,12 @@

<script>
// @ is an alias to /src
import { mapActions } from 'vuex';
import localPosts from '@/api/posts.json';
import ResourcesCard from '@/components/ResourcesCard.vue'
import NativeAd from "@/components/NativeAd.vue";
import pages from '@/api/pages.json';
export default {
Expand Down Expand Up @@ -223,7 +225,7 @@ export default {
for(let post in Object.keys(storeResourcesData)){
try {
if (storeResourcesData[post].slug == routerName) {
console.log(storeResourcesData[post].title);
// console.log(storeResourcesData[post].title);
parent.resourceItem = storeResourcesData[post];
}
} catch (error) {
Expand All @@ -235,7 +237,6 @@ export default {
// Check if blog data has already been fetched, if not, fetch only the blog required
if (moreResources.length == undefined) {
console.log( this.$router.currentRoute);
const resourceItem = await parent.$store.dispatch('getSinglePageAction', routerName);
// If the blog post requested does not exists, redirect user to main blog page
Expand Down
2 changes: 1 addition & 1 deletion website/macos-big-sur-icons/src/views/Resources.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@

<script>
// @ is an alias to /src
import { mapActions } from 'vuex'
import Header from '@/components/Header.vue'
import ResourcesCard from '@/components/ResourcesCard.vue'
import Footer from '@/components/Footer.vue'
import H3Description from '@/components/H3_Description.vue'
import pages from '@/api/pages.json';
import { mapActions } from 'vuex'
export default {
name: 'Resources',
Expand Down

1 comment on commit ab79d3a

@vercel
Copy link

@vercel vercel bot commented on ab79d3a May 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.