MOBILE-4470 workshop: Remove changes confirmation when not editing

main
Pau Ferrer Ocaña 2024-06-06 11:01:02 +02:00
parent 84f59bb8ee
commit deccc4cbf5
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ export class AddonModWorkshopAssessmentStrategyComponent implements OnInit, OnDe
* @returns True if data has changed. * @returns True if data has changed.
*/ */
hasDataChanged(): boolean { hasDataChanged(): boolean {
if (!this.assessmentStrategyLoaded || !this.workshop.strategy) { if (!this.assessmentStrategyLoaded || !this.workshop.strategy || !this.edit) {
return false; return false;
} }