Skip to content

Commit

Permalink
chore: immediate default false
Browse files Browse the repository at this point in the history
  • Loading branch information
hywax committed Jan 5, 2024
1 parent 9578305 commit f41d0e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/service/base/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const props = defineProps<BaseService>()
// Right now, queries for "base" are only needed for statuses.
// When the situation will change it is necessary to remove/add condition for "immediate"
const { data, pauseUpdate } = useServiceData<BaseService, { ping: { time: number, status: boolean } }>(props, {
immediate: props.status?.enabled,
immediate: props.status?.enabled || false,
})
onBeforeUnmount(pauseUpdate)
Expand Down

0 comments on commit f41d0e1

Please sign in to comment.