You've already forked isop-mirror
fix: correct error handling in internship data display
This commit is contained in:
@@ -51,10 +51,10 @@ const { data, error } = await useSanctumFetch<Internship[]>('/api/internships');
|
|||||||
<h3>Moje praxe</h3>
|
<h3>Moje praxe</h3>
|
||||||
|
|
||||||
<!-- Chybová hláška -->
|
<!-- Chybová hláška -->
|
||||||
<v-alert v-if="error !== null" density="compact" :text="error?.message" title="Chyba" type="error"
|
<v-alert v-if="error" density="compact" :text="error?.message" title="Chyba" type="error"
|
||||||
id="login-error-alert" class="mx-auto alert"></v-alert>
|
id="login-error-alert" class="mx-auto alert"></v-alert>
|
||||||
|
|
||||||
<v-table>
|
<v-table v-else>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th v-for="header in headers" :class="'text-' + header.align">
|
<th v-for="header in headers" :class="'text-' + header.align">
|
||||||
|
|||||||
Reference in New Issue
Block a user