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') {
|
||||
error = repuestos;
|
||||
} else {
|
||||
if (typeof repuestos[0].deleted_at !== 'undefined')
|
||||
repuestos.forEach((x) => {
|
||||
if (repuestos.length != 0 && typeof repuestos[0].deleted_at !== 'undefined')
|
||||
repuestos.forEach((x:any) => {
|
||||
x.deleted_at = x.deleted_at ? '✗' : '✔';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user