mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-19 05:21:01 +02:00
Fix error when first visit to select format page
This commit is contained in:
parent
bfe5c8b721
commit
fbdcee5444
@ -19,8 +19,10 @@
|
|||||||
this.formats = Object.keys(this.formatOptions);
|
this.formats = Object.keys(this.formatOptions);
|
||||||
this.format = this.initialSelected;
|
this.format = this.initialSelected;
|
||||||
this.params = JSON.parse(this.paramsJson);
|
this.params = JSON.parse(this.paramsJson);
|
||||||
this.grok_str = this.params.setting.grok_str;
|
if(this.params && this.params.setting) {
|
||||||
this.regexp = this.params.setting.regexp;
|
this.grok_str = this.params.setting.grok_str;
|
||||||
|
this.regexp = this.params.setting.regexp;
|
||||||
|
}
|
||||||
this.$watch('regexp', function(ev){
|
this.$watch('regexp', function(ev){
|
||||||
this.previewRegexp();
|
this.previewRegexp();
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user