🔧 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();
|
const tournamentDetailsState = useAsyncState();
|
||||||
|
|
||||||
// Destructure for easier access
|
// Destructure for easier access
|
||||||
const { data: tournaments, isLoading: loading, error } = tournamentListState;
|
const { data: tournaments, loading, error } = tournamentListState;
|
||||||
const { isLoading: loadingMore } = loadMoreState;
|
const { loading: loadingMore } = loadMoreState;
|
||||||
|
|
||||||
// Search and filter
|
// Search and filter
|
||||||
const searchQuery = ref('');
|
const searchQuery = ref('');
|
||||||
|
|||||||
@@ -183,7 +183,7 @@
|
|||||||
<template #tournament-details="{ tournament, isExpanded }">
|
<template #tournament-details="{ tournament, isExpanded }">
|
||||||
<TournamentDetail
|
<TournamentDetail
|
||||||
:tournament-details="tournamentDetails"
|
:tournament-details="tournamentDetails"
|
||||||
:loading="tournamentDetailsState.isLoading.value"
|
:loading="tournamentDetailsState.loading.value"
|
||||||
:error="tournamentDetailsState.error.value"
|
:error="tournamentDetailsState.error.value"
|
||||||
:is-expanded="isExpanded"
|
:is-expanded="isExpanded"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user