normalize store references

This commit is contained in:
2xburnt 2025-07-30 18:15:49 -05:00
parent c469a91c9a
commit d1db35c2c1
No known key found for this signature in database
GPG Key ID: 0FC7634F60B3CAE3
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<script lang="ts" setup>
import { useDashboard } from '@/stores/useDashboard';
import { useDashboard } from '@/stores';
import { computed } from 'vue';
import { Icon } from '@iconify/vue';

View File

@ -28,8 +28,9 @@ const options = computed(() => {
},
show: false,
categories: baseStore.recents
.slice(0, 50)
.map((x) => x.block.header.height)
.concat(Array(50 - baseStore.recents.length).fill('')),
.concat(Array(Math.max(0, 50)).fill('')),
},
};
});

View File

@ -7,7 +7,7 @@ import { createPinia } from 'pinia';
import LazyLoad from 'lazy-load-vue3';
import router from './router';
import { useBaseStore } from './stores/useBaseStore';
import { useBaseStore } from '@/stores';
// Create vue app
const app = createApp(App);