Explorar el Código

車室番号が数値でない場合がある対応

develop
sosuke.iwabuchi hace 1 año
padre
commit
70a9cac32d
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. +3
    -2
      src/apps/定期申込予約/自動承認.ts

+ 3
- 2
src/apps/定期申込予約/自動承認.ts Ver fichero

@@ -161,9 +161,10 @@ export class 申込 {
throw new Message("空き車室がありません");
}

const 車室番号 = Number(target.value.車室番号.value);
const 車室番号 = target.value.車室番号.value;
console.log({ 車室一覧: this.車室一覧, 車室番号 });
const 車室 = this.車室一覧.find((room) => {
return Number(room.車室番号.value) === 車室番号;
return room.車室番号.value === 車室番号;
});
if (!車室) {
throw new Message("車室がありません");


Cargando…
Cancelar
Guardar