Skip to content

Commit

Permalink
[#187] fix console error on collapse card
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Jul 3, 2024
1 parent b5b36f7 commit 94852ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/shared/ui/preview-card/preview-card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import download from "downloadjs";
import { toBlob, toPng } from "html-to-image";
import moment from "moment";
import { ref, computed, onBeforeMount, onMounted, nextTick } from "vue";
import { ref, computed, onBeforeMount, onMounted } from "vue";
import { REST_API_URL } from "../../lib/io";
import { useEvents } from "../../lib/use-events";
import type { NormalizedEvent } from "../../types";
Expand Down Expand Up @@ -43,9 +43,8 @@ const normalizedOrigin = computed(() => {
const eventUrl = computed(() => `${REST_API_URL}/api/event/${props.event.id}`);
const toggleView = (e: MouseEvent) => {
const toggleView = () => {
isCollapsed.value = !isCollapsed.value;
e.preventDefault();
};
const changeVisibleControls = (value = true) => {
Expand Down

0 comments on commit 94852ad

Please sign in to comment.