@ascentgl/ads-ui 20.0.33 → 20.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -791,7 +791,7 @@ class AdsCreateTagComponent {
|
|
|
791
791
|
}
|
|
792
792
|
/** @ignore */
|
|
793
793
|
onTagCreated(tag) {
|
|
794
|
-
tag.id = (this.tags.length + 1).toString(); // Generate a unique id for the tag - uuid is a 3rd party library
|
|
794
|
+
tag.id = (this.tags[this.tags.length - 1].id + 1).toString(); // Generate a unique id for the tag - uuid is a 3rd party library
|
|
795
795
|
this.tags.push(tag); // Add the tag to the list of tags
|
|
796
796
|
this.tagsChange.emit([...this.tags]); // emit the updated array
|
|
797
797
|
this.tagCreate.emit(tag);
|