Skip to content

Commit 44a7473

Browse files
authored
Fix unused imports and types (#941)
* ❌ Remove unused imports * 🔨 Fix type issues
1 parent 9f32fa4 commit 44a7473

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

frontend/src/components/FTUE/GoogleOauthProvider.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { useExternalConnectionsStore } from '@/stores/external-connections-store
1111
import { callKey } from '@/keys';
1212
import { ExternalConnectionProviders } from '@/definitions';
1313
import {
14-
BooleanResponse, Error, Exception, ExceptionDetail,
14+
BooleanResponse, Exception, ExceptionDetail,
1515
} from '@/models';
1616
1717
const { t } = useI18n();

frontend/src/components/FTUE/SetupSchedule.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ import { useScheduleStore } from '@/stores/schedule-store';
1717
import {
1818
dayjsKey, callKey, isoWeekdaysKey,
1919
} from '@/keys';
20-
import {
21-
Error, Exception, ExceptionDetail, SelectOption,
22-
} from '@/models';
20+
import { Error, SelectOption } from '@/models';
2321
2422
const { t } = useI18n();
2523
const dj = inject(dayjsKey);

frontend/src/stores/appointment-store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const useAppointmentStore = defineStore('appointments', () => {
3535
a.active = a.status !== BookingStatus.Booked;
3636
// convert start dates from UTC back to users timezone
3737
a.slots.forEach((s: Slot) => {
38-
s.start = dj(s.start).utc(true).tz(userStore.data.timezone ?? tzGuess);
38+
s.start = dj(s.start).utc(true).tz(userStore.data.settings.timezone ?? tzGuess);
3939
});
4040
});
4141
};

frontend/src/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
PydanticException,
1111
User,
1212
Alert,
13-
SubscriberListResponse, Subscriber, ListResponse,
13+
ListResponse,
1414
} from '@/models';
1515

1616
/**
@@ -215,7 +215,7 @@ export const sleep = async (timeMs: number) => new Promise((resolve) => { window
215215
* @param perPage
216216
* @param pageError
217217
*/
218-
export const staggerRetrieve = async (requestFn: any, perPage: number, pageError?: ref<Alert>) => {
218+
export const staggerRetrieve = async (requestFn: any, perPage: number, pageError?: Ref<Alert>) => {
219219
// Load the first page to get the total amount of pages
220220
const response: ListResponse = await requestFn({
221221
page: 1,

0 commit comments

Comments
 (0)