diff --git a/resources/js/pages/CoursePlanningPage/stores/useCoursePlanningStore.ts b/resources/js/pages/CoursePlanningPage/stores/useCoursePlanningStore.ts index 283f3b3e..8fddc66b 100644 --- a/resources/js/pages/CoursePlanningPage/stores/useCoursePlanningStore.ts +++ b/resources/js/pages/CoursePlanningPage/stores/useCoursePlanningStore.ts @@ -407,7 +407,6 @@ export const useCoursePlanningStore = defineStore("coursePlanning", () => { setFiltersFromQueryString(parsedQuery: ReturnType) { const updatedFilters: T.CoursePlanningFilters = { ...state.filters }; - console.log("parsed query", parsedQuery); if (parsedQuery.inPlanningMode) { updatedFilters.inPlanningMode = parsedQuery.inPlanningMode === "true"; @@ -457,8 +456,6 @@ export const useCoursePlanningStore = defineStore("coursePlanning", () => { } state.filters = updatedFilters; - - console.log("parsed query", { parsedQuery, filters: updatedFilters }); }, }; diff --git a/resources/js/pages/CoursePlanningPage/stores/useLeaveStore.ts b/resources/js/pages/CoursePlanningPage/stores/useLeaveStore.ts index 935fb61b..1bfe6cb1 100644 --- a/resources/js/pages/CoursePlanningPage/stores/useLeaveStore.ts +++ b/resources/js/pages/CoursePlanningPage/stores/useLeaveStore.ts @@ -7,16 +7,12 @@ import { groupBy, keyBy } from "lodash"; interface LeaveStoreState { activeGroupId: T.Group["id"] | null; leaveLookup: Record; - startDateOptions: T.ApiLeaveDateOptions["startDateOptions"]; - endDateOptions: T.ApiLeaveDateOptions["endDateOptions"]; } export const useLeaveStore = defineStore("leave", () => { const state = reactive({ activeGroupId: null, leaveLookup: {}, - startDateOptions: [], - endDateOptions: [], }); const getters = { @@ -51,10 +47,7 @@ export const useLeaveStore = defineStore("leave", () => { const actions = { init(groupId: T.Group["id"]) { state.activeGroupId = groupId; - return Promise.all([ - actions.fetchLeaves(), - actions.fetchLeaveDateOptions(), - ]); + return Promise.all([actions.fetchLeaves()]); }, async fetchLeaves() { @@ -64,13 +57,6 @@ export const useLeaveStore = defineStore("leave", () => { const leaves = await api.fetchLeavesForGroup(state.activeGroupId); state.leaveLookup = keyBy(leaves, "id"); }, - - async fetchLeaveDateOptions() { - const { startDateOptions, endDateOptions } = - await api.getTermPayrollDates(); - state.startDateOptions = startDateOptions; - state.endDateOptions = endDateOptions; - }, }; return {