fixes de ts
This commit is contained in:
1 parent
56a4092a1c
commit
e58985b1e2
2 files changed
+2
-3
No files matched your search
@@ -1,4 +1,4 @@
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import UserCard from '@/components/UserCard.svelte';
|
||||
|
||||
let { data } = $props();
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import { busquedaUsuarios } from '@/hooks/busquedaUsuarios';
|
||||
import type { PageProps } from '../$types';
|
||||
import { error } from '@sveltejs/kit';
|
||||
import type { UserResponseDto } from '../../../types';
|
||||
|
||||
export async function load({ params }: PageProps) {
|
||||
export async function load({ params }) {
|
||||
let usuarios: UserResponseDto[] = await busquedaUsuarios(params.user);
|
||||
if (usuarios == null) {
|
||||
return error(500, 'No se pudo alcanzar el servidor.');
|
||||
|
||||
Reference in new issue
Block a user