Commit 889f3b5a authored by Riri Novita's avatar Riri Novita

Merge branch 'ENV-DEV' of http://103.44.149.204/d.arizona/tia-dev into dev/riri

parents fe941fee f1f4cee7
This diff is collapsed.
This diff is collapsed.
...@@ -1020,7 +1020,7 @@ export default class CreateParameter extends Component { ...@@ -1020,7 +1020,7 @@ export default class CreateParameter extends Component {
validasiRegexValue() { validasiRegexValue() {
let obj = null let obj = null
if (R.isNil(this.state.getTypes)) { if (R.isNil(this.state.getTypes)) {
obj = { regexValue: "", valueLength: "" } obj = { regexValue: (/null.*$/), valueLength: 0 }
} else { } else {
if (this.state.getTypes.setting_group_name === "CURRENCY") { if (this.state.getTypes.setting_group_name === "CURRENCY") {
obj = { regexValue: (/\d+(\.\d+)?/), valueLength: 20 } obj = { regexValue: (/\d+(\.\d+)?/), valueLength: 20 }
...@@ -1054,6 +1054,8 @@ export default class CreateParameter extends Component { ...@@ -1054,6 +1054,8 @@ export default class CreateParameter extends Component {
obj = { regexValue: (/Q1\s\d{4}/), valueLength: 7 } obj = { regexValue: (/Q1\s\d{4}/), valueLength: 7 }
} }
} }
}else{
obj = { regexValue: (/null.*$/), valueLength: 20 }
} }
} }
return obj; return obj;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment