Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tnze committed Jul 7, 2023
1 parent a4d6007 commit 2757aee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/bill-of-material/Item.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<script lang="ts" setup>
import { itemInfo } from "../../Craft"
import { useSettingsStore } from '../../store';
const settingStore = useSettingsStore()
const props = defineProps<{
item_id: number
}>()
const { name } = await itemInfo(props.item_id)
const { name } = await settingStore.getDataSource.itemInfo(props.item_id)
</script>

<template>
Expand Down

0 comments on commit 2757aee

Please sign in to comment.