Skip to content

Commit

Permalink
Remove unused computed
Browse files Browse the repository at this point in the history
  • Loading branch information
KwikKill committed Feb 13, 2024
1 parent d41038d commit 52418d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/stores/pizza.store.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from 'axios';
import { defineStore, storeToRefs } from 'pinia';
import { computed, ref } from 'vue';
import { ref } from 'vue';
import type { Order } from '@/models/order';
import type { Pizza } from '@/models/pizza';
import type { AdminTimeslotDeref, Export, Timeslot } from '@/models/timeslot';
Expand All @@ -14,8 +14,6 @@ export const usePizzaStore = defineStore('pizza', () => {
const pizzaList = ref<Record<number, Pizza>>({});
const timeslotList = ref<Record<number, Timeslot | AdminTimeslotDeref>>({});

const pizzas = computed(() => Object.values(pizzaList.value));

async function fetchAllPizzas() {
const res = await axios.get<Pizza[]>('/pizza/pizza/full');
res.data.forEach((p: Pizza) => { pizzaList.value[p.id] = p; });
Expand Down Expand Up @@ -184,7 +182,6 @@ export const usePizzaStore = defineStore('pizza', () => {
return {
pizzaList,
timeslotList,
pizzas,
fetchAllPizzas,
fetchNextTimeslot,
frenchFormatFromDate,
Expand Down

0 comments on commit 52418d0

Please sign in to comment.