Private
Public Access
falla
This commit is contained in:
1 parent
6c0e44cb45
commit
90e76d4963
11 files changed
+112
-38
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import { obtenerRepuestos } from '$lib/hooks/repuestos/obtenerRepuestos';
|
||||
|
||||
export let ssr = false;
|
||||
export async function load({ fetch }) {
|
||||
const repuestos = await obtenerRepuestos(fetch);
|
||||
|
||||
let error = '';
|
||||
if (typeof repuestos === 'string') {
|
||||
error = repuestos;
|
||||
}
|
||||
return {
|
||||
repuestos: repuestos,
|
||||
error: error
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user