@capillarytech/creatives-library 7.17.53 → 7.17.54

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capillarytech/creatives-library",
3
3
  "author": "meharaj",
4
- "version": "7.17.53",
4
+ "version": "7.17.54",
5
5
  "description": "Capillary creatives ui",
6
6
  "main": "./index.js",
7
7
  "module": "./index.es.js",
@@ -817,7 +817,20 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
817
817
  }
818
818
  if ((this.state.channel || '').toLowerCase() === SMS_LOWERCASE && isTraiDltFeature) {
819
819
  queryParams.traiEnable = true;
820
- }
820
+ }
821
+ if (
822
+ this.state.channel.toLowerCase() === ZALO_LOWERCASE &&
823
+ !isEmpty(this.props.Templates?.selectedZaloAccount)
824
+ ) {
825
+ const {
826
+ name = "",
827
+ sourceAccountIdentifier = "",
828
+ configs: { token = "" } = {},
829
+ } = get(this.props, "Templates.selectedZaloAccount", {});
830
+ queryParams.username = name;
831
+ queryParams.oa_id = sourceAccountIdentifier;
832
+ queryParams.token = token;
833
+ }
821
834
  this.setState({ page, templatesCount }, () => {
822
835
  queryParams.page = page;
823
836
  queryParams.perPage = this.state.perPageLimit;