Skip to content

Commit

Permalink
fix: js linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Oct 14, 2024
1 parent 018bfea commit 977a42d
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion app/components/centrum/dispatches/DispatchAssignModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const state = reactive<Schema>({
});
async function assignDispatch(): Promise<void> {
if (dispatch === undefined) {
if (dispatch.value === undefined) {
return;
}
Expand Down
21 changes: 11 additions & 10 deletions app/components/centrum/livemap/CentrumSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -568,16 +568,17 @@ defineShortcuts({
</UButton>
</li>
<template
v-else
v-for="id in getSortedOwnDispatches.slice().reverse()"
:key="id"
>
<OwnDispatchEntry
v-if="dispatches.get(id) !== undefined"
v-model:selected-dispatch="selectedDispatch"
:dispatch="dispatches.get(id)!"
/>
<template v-else>
<template
v-for="id in getSortedOwnDispatches.slice().reverse()"
:key="id"
>
<OwnDispatchEntry
v-if="dispatches.get(id) !== undefined"
v-model:selected-dispatch="selectedDispatch"
:dispatch="dispatches.get(id)!"
/>
</template>
</template>
</ul>
</li>
Expand Down
1 change: 0 additions & 1 deletion app/components/documents/DocumentReferenceManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ async function listDocuments(): Promise<DocumentShort[]> {
offset: 0,
pageSize: 8,
},
orderBy: [],
search: queryDoc.value,
categoryIds: [],
creatorIds: [],
Expand Down
1 change: 1 addition & 0 deletions app/components/jobs/timeclock/TimeclockList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const props = withDefaults(
forceHistoricView?: boolean;
}>(),
{
userId: undefined,
showStats: true,
historicSubDays: 7,
forceHistoricView: undefined,
Expand Down
4 changes: 4 additions & 0 deletions app/components/partials/DatePickerPopover.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ const props = withDefaults(
dateFormat?: string;
}>(),
{
modelValue: undefined,
popover: undefined,
button: undefined,
datePicker: undefined,
dateFormat: 'dd.MM.yyyy',
},
);
Expand Down
1 change: 0 additions & 1 deletion app/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ const groups = computed(() => [
offset: 0,
pageSize: 10,
},
orderBy: [],
search: query,
categoryIds: [],
creatorIds: [],
Expand Down
2 changes: 1 addition & 1 deletion app/pages/jobs/colleagues/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const links = [
<DataNoDataBlock v-else-if="!colleague || !colleague.colleague" />

<template v-else>
<ColleagueInfo :colleague="colleague.colleague" @update:absenceDates="updateColleageAbsence($event)" />
<ColleagueInfo :colleague="colleague.colleague" @update:absence-dates="updateColleageAbsence($event)" />

<UDashboardToolbar class="overflow-x-auto px-1.5 py-0">
<UHorizontalNavigation :links="links" />
Expand Down

0 comments on commit 977a42d

Please sign in to comment.