Skip to content

Commit

Permalink
fix: Saving of attribute value when it's not object
Browse files Browse the repository at this point in the history
  • Loading branch information
raitisbe committed Jun 28, 2022
1 parent 1980c5f commit c41622e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export class HsQueryAttributeRowComponent implements OnInit {
change(): void {
if (this.feature?.feature) {
const feature = this.feature.feature;
feature.set(this.attribute.name, JSON.parse(this.tmpObjectValue));
if (this.isObject) {
feature.set(this.attribute.name, JSON.parse(this.tmpObjectValue));
} else {
feature.set(this.attribute.name, this.attribute.value);
}
}
}

Expand Down

0 comments on commit c41622e

Please sign in to comment.