Skip to content

Commit

Permalink
replace the type "any" with Component
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Aug 25, 2023
1 parent 432134d commit e2241a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/main/run-frame/top-bar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

<script setup lang="ts">
import { computed } from "vue";
import type { Component } from "vue";
import { useScheduleStore } from "@/plugins/pinia/stores/schedule";
Expand All @@ -31,8 +32,7 @@ const state = computed(
const scheduleStore = useScheduleStore();
const { autoMode } = storeToRefs(scheduleStore);
// Use "any" because Component causes an error for unknown reason
const actionComponent = computed<any | null>(() => {
const actionComponent = computed<Component | null>(() => {
if (autoMode.value) {
switch (state.value) {
case "running":
Expand Down

0 comments on commit e2241a3

Please sign in to comment.