Skip to content

Commit

Permalink
💚 Improve code readability
Browse files Browse the repository at this point in the history
  • Loading branch information
devmount committed Aug 26, 2024
1 parent ebfa969 commit 8c2d51a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions frontend/src/views/ScheduleView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const getRemoteEvents = async (from: string, to: string) => {
const { data }: RemoteEventListResponse = await call(`rmt/cal/${calendar.id}/${from}/${inclusiveTo}`).get().json();
if (Array.isArray(data.value)) {
calendarEvents.value.push(
...data.value.map((e) => ({
...e,
duration: dj(e.end).diff(dj(e.start), 'minutes')
...data.value.map((event) => ({
...event,
duration: dj(event.end).diff(dj(event.start), 'minutes')
}))
);
}
Expand Down
3 changes: 0 additions & 3 deletions frontend/test/stores/appointment-store.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ const restHandlers = [
];

const server = setupServer(...restHandlers);
// server.events.on('request:start', ({ request }) => {
// console.log('Outgoing:', request.method, request.url);
// });

describe('Appointment Store', () => {
let app = null;
Expand Down

0 comments on commit 8c2d51a

Please sign in to comment.