Skip to content

Check for $refs.editView before calling immediateSaveAll method#2950

Merged
marcellamaki merged 1 commit into
learningequality:hotfixesfrom
jonboiser:check-for-editview-ref
Feb 23, 2021
Merged

Check for $refs.editView before calling immediateSaveAll method#2950
marcellamaki merged 1 commit into
learningequality:hotfixesfrom
jonboiser:check-for-editview-ref

Conversation

@jonboiser
Copy link
Copy Markdown
Contributor

The handleClose method tries to call $refs.editView.immediateSaveAll even though that ref is conditionally rendered. This simply checks to see if the ref exists before calling that method.

Fixes #2949

Copy link
Copy Markdown
Member

@marcellamaki marcellamaki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks for improving some code I worked on @jonboiser 😄

@marcellamaki marcellamaki merged commit f5f9f0a into learningequality:hotfixes Feb 23, 2021
@jonboiser jonboiser deleted the check-for-editview-ref branch March 4, 2021 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Imposible to close "Upload files" modal

2 participants