Fix filters loading for stock filter [SCI-6687] (#3975)

Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
aignatov-bio 2022-03-31 14:40:17 +02:00 committed by GitHub
parent addd4a9522
commit ede5e958db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,6 +96,14 @@
}
},
created() {
if (this.parameters) {
this.value = this.parameters.value || ''
this.from = this.parameters.from || ''
this.to = this.parameters.to || ''
this.stock_unit = this.parameters.stock_unit || 'all'
}
},
watch: {
stock_unit() {
this.parameters.stock_unit = this.stock_unit