Skip to content

Commit

Permalink
reloading profile search data on profile update
Browse files Browse the repository at this point in the history
  • Loading branch information
gbajaj91 committed Sep 12, 2024
1 parent 1c52dc5 commit 883e69a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ecc/components/profile-container/profile-container.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable import/prefer-default-export */
/* eslint-disable class-methods-use-this */
import { getSpeakers } from '../../scripts/esp-controller.js';
import { LIBS } from '../../scripts/scripts.js';
import { isEmptyObject } from '../../scripts/utils.js';
import { style } from './profile-container.css.js';
Expand Down Expand Up @@ -32,8 +33,14 @@ export class ProfileContainer extends LitElement {
this.requestUpdate();
}

reloadSearchData = async () => {
const spResp = await getSpeakers(this.seriesId);
if (spResp) this.searchdata = spResp.speakers;
};

updateProfile(index, profile) {
this.profiles[index] = profile;
this.reloadSearchData();
this.requestUpdate();
}

Expand Down

0 comments on commit 883e69a

Please sign in to comment.