fix: #234 フィールドに値を挿入するコンポーネントのinsert-value.tsの修正
コンポーネントの動作確認が取れていなかったため、insert-value.tsを修正いたしました。
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
|
|
||||||
|
|
||||||
import { actionAddins } from ".";
|
import { actionAddins } from ".";
|
||||||
import { IAction,IActionResult, IActionNode, IActionProperty, IField, IContext } from "../types/ActionTypes";
|
import { IAction,IActionResult, IActionNode, IActionProperty, IField, IContext } from "../types/ActionTypes";
|
||||||
import { ConditionTree } from '../types/Conditions';
|
import { ConditionTree } from '../types/Conditions';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* アクションの属性定義
|
* アクションの属性定義
|
||||||
*/
|
*/
|
||||||
@@ -354,10 +357,10 @@ export class InsertValueAction implements IAction{
|
|||||||
//入力値チェック後、形式変換、型変換した値を格納する配列
|
//入力値チェック後、形式変換、型変換した値を格納する配列
|
||||||
let correctValues :string[] = [];
|
let correctValues :string[] = [];
|
||||||
//空白文字チェックの結果が負の場合、true
|
//空白文字チェックの結果が負の場合、true
|
||||||
let checkInputError=this.checkInputBlank(fieldType,fieldValue,fieldCode,fieldRequired,event);
|
let notInputError=this.checkInputBlank(fieldType,fieldValue,fieldCode,fieldRequired,event);
|
||||||
|
|
||||||
//条件式の結果がtrue、空白文字チェックでエラーがない場合、挿入する値をフィールドタイプ別にチェックする
|
//条件式の結果がtrue、空白文字チェックでエラーがない場合、挿入する値をフィールドタイプ別にチェックする
|
||||||
if(conditionResult && !checkInputError){
|
if(conditionResult && notInputError){
|
||||||
|
|
||||||
//文字列型のフィールドに挿入しようとしている値が適切の場合、correctFormattedValueに代入する
|
//文字列型のフィールドに挿入しようとしている値が適切の場合、correctFormattedValueに代入する
|
||||||
if(fieldType === "SINGLE_LINE_TEXT" || fieldType === "MULTI_LINE_TEXT" || fieldType === "RICH_TEXT" || fieldType === "LINK" ){
|
if(fieldType === "SINGLE_LINE_TEXT" || fieldType === "MULTI_LINE_TEXT" || fieldType === "RICH_TEXT" || fieldType === "LINK" ){
|
||||||
|
|||||||
Reference in New Issue
Block a user