Skip to content

Commit

Permalink
fix(Authoring): Move lesson after empty lesson breaks project (#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffreykwan authored Jun 4, 2024
1 parent 03008dc commit 68b3c4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/wise5/services/teacherProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2700,7 +2700,7 @@ export class TeacherProjectService extends ProjectService {
if (groupIdWeAreMoving === toNodeIdParentGroupId) {
// the transition is to a child in the group we are moving

if (groupNode.startId == null) {
if (groupNode.startId == null || groupNode.startId === '') {
// change the transition to point to the after group
transitionFromChild.to = firstNodeToRemoveTransitionToNodeId;
} else {
Expand Down

0 comments on commit 68b3c4e

Please sign in to comment.