async generateTitleDescription()

in frontend/src/app/content-creator/product/add-product/add-product.component.ts [197:214]


  async generateTitleDescription() {
    if (this.labels || this.categories || this.features) {
      this.loading = true;
      this.isTitleGenerated = true;
      this.creatorService.generateTitleDescription(
        this.labels.concat(this.categories, this.features), this.firstFormGroup.value.firstCtrl
      ).subscribe((res: any) => {
        this.title = res.title;
        this.description = res.description;
        this.loading = false;
        this.stepper.next();
        this.thirdFormGroup.setValue({
          thirdCtrl: this.title,
          fourthCtrl: this.description,
        })
      });
    }
  }