Private
Public Access
correjido bug cuando no hay repuestso
This commit is contained in:
1 parent
3a9dcdfce7
commit
a0ce1fb43b
1 file changed
+2
-2
@@ -9,8 +9,8 @@ export async function load({ fetch, depends }) {
|
|||||||
if (typeof repuestos === 'string') {
|
if (typeof repuestos === 'string') {
|
||||||
error = repuestos;
|
error = repuestos;
|
||||||
} else {
|
} else {
|
||||||
if (typeof repuestos[0].deleted_at !== 'undefined')
|
if (repuestos.length != 0 && typeof repuestos[0].deleted_at !== 'undefined')
|
||||||
repuestos.forEach((x) => {
|
repuestos.forEach((x:any) => {
|
||||||
x.deleted_at = x.deleted_at ? '✗' : '✔';
|
x.deleted_at = x.deleted_at ? '✗' : '✔';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user