Skip to content

Commit

Permalink
Update change style
Browse files Browse the repository at this point in the history
  • Loading branch information
Tuxivinc committed Jul 15, 2024
1 parent 07cfbcb commit 803851c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/Parcours.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,10 @@
};
const onActionSave = async (component?: string) => {
document.getElementsByClassName("received")[0].style = '';
const receive = document.querySelector<HTMLElement>('.received');
if (receive){
receive.style.display = '';
}
logDebug('Save ' + component);
await measureAcquisition.getNetworkMeasure(false);
const measure = await measureAcquisition.getGESMeasure(serverSearch, userSearch);
Expand All @@ -66,7 +69,9 @@
if (measure) {
results = [...results, measure];
}
document.getElementsByClassName("received")[0].style = 'display: block';
if (receive){
receive.style.display = 'block';
}
measureAcquisition.applyLatest();
};
Expand Down

0 comments on commit 803851c

Please sign in to comment.