瀏覽代碼

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

develop
sosuke.iwabuchi 1 年之前
父節點
當前提交
70a9cac32d
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      src/apps/定期申込予約/自動承認.ts

+ 3
- 2
src/apps/定期申込予約/自動承認.ts 查看文件

@@ -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("車室がありません");


Loading…
取消
儲存