correjido bug cuando no hay repuestso

This commit is contained in:
fede committed 2026-10-27 17:04:14 -03:00
1 parent 3a9dcdfce7
commit a0ce1fb43b
1 file changed
+2 -2
+2 -2
View File
@@ -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 ? '✗' : '✔';
});
}