Skip to content

Commit

Permalink
Fix quiz resource selction edirection from section editor
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Feb 3, 2025
1 parent fde6c7b commit cf3cb51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,6 @@

<style scoped>
.mb-16 {
margin-bottom: 16px;
}
.mt-24 {
margin-top: 24px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,11 @@
// The user should be confirming losing changes
next(false);
} else {
if (to.name === this.selectResourcesRoute.name) {
if (to.name.startsWith(this.selectResourcesRoute.name)) {
// The user clicked "Add Questions" and we need to save the changes
// and redirect them
// Comparing using the `startsWith` method because the main route in
// this.selectResourcesRoute.name will redirect it to a subroute
this.applySettings(to.name);
return next(false);
}
Expand Down

0 comments on commit cf3cb51

Please sign in to comment.