@imposium-hub/components 2.2.41-1 → 2.2.41-2

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.
@@ -130,7 +130,7 @@ export interface IImposiumAPI {
130
130
  compositionData: any,
131
131
  name?: string
132
132
  ): Promise<any | Error>;
133
- createHTMLAsset(storyId: string, htmlData: any, name?: string): Promise<any | Error>;
133
+ createHTMLAsset(storyId: string, htmlData: any): Promise<any | Error>;
134
134
  getAccountInfo(orgId: string): Promise<any | Error>;
135
135
  saveQueueAssoc(queueId: string, storyId: string, distributed: boolean);
136
136
  createDataset(storyId: string, data: File, name: string);
@@ -540,11 +540,7 @@ export default class API {
540
540
  });
541
541
  };
542
542
 
543
- public createHTMLAsset = (
544
- storyId: string,
545
- htmlData: any,
546
- name: string = 'New HTML Asset'
547
- ): Promise<any | Error> => {
543
+ public createHTMLAsset = (storyId: string, htmlData: any): Promise<any | Error> => {
548
544
  const formData = new FormData();
549
545
 
550
546
  formData.append('story_id', storyId);
@@ -553,7 +549,7 @@ export default class API {
553
549
 
554
550
  formData.append('type', 'html');
555
551
 
556
- formData.append('name', name);
552
+ formData.append('name', 'New HTML Asset');
557
553
 
558
554
  return this.doRequest({
559
555
  method: 'POST',