🔧 Simplify destructuring assignments for state variables in useChallongeTests
This commit is contained in:
@@ -33,8 +33,8 @@ export function useChallongeTests(client, apiVersion, tournamentScope) {
|
||||
const tournamentDetailsState = useAsyncState();
|
||||
|
||||
// Destructure for easier access
|
||||
const { data: tournaments, isLoading: loading, error } = tournamentListState;
|
||||
const { isLoading: loadingMore } = loadMoreState;
|
||||
const { data: tournaments, loading, error } = tournamentListState;
|
||||
const { loading: loadingMore } = loadMoreState;
|
||||
|
||||
// Search and filter
|
||||
const searchQuery = ref('');
|
||||
|
||||
@@ -183,7 +183,7 @@
|
||||
<template #tournament-details="{ tournament, isExpanded }">
|
||||
<TournamentDetail
|
||||
:tournament-details="tournamentDetails"
|
||||
:loading="tournamentDetailsState.isLoading.value"
|
||||
:loading="tournamentDetailsState.loading.value"
|
||||
:error="tournamentDetailsState.error.value"
|
||||
:is-expanded="isExpanded"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user