BUG514,521,522エラー処理の関連修正

This commit is contained in:
xiaozhe.ma
2024-07-31 18:39:53 +09:00
parent b6a68198f5
commit a81f5e8c7f
2 changed files with 6 additions and 0 deletions

View File

@@ -43,6 +43,9 @@ export class FullWidthAction implements IAction{
this.props = actionNode.ActionValue as FullWidthProps;
//条件式の計算結果を取得
const record = event.record;
if(!(this.props.field.code in record)){
throw new Error(`フィールド「${this.props.field.code}」が見つかりません。`);
}
const value = record[this.props.field.code]?.value;
//条件分岐
//未入力時は何も処理をせず終了

View File

@@ -43,6 +43,9 @@ export class HalfWidthAction implements IAction{
this.props = actionNode.ActionValue as HalfWidthProps;
//条件式の計算結果を取得
const record = event.record;
if(!(this.props.field.code in record)){
throw new Error(`フィールド「${this.props.field.code}」が見つかりません。`);
}
const value = record[this.props.field.code]?.value;
//条件分岐
//未入力時は何も処理をせず終了