Skip to content

Bugfix set empty $suggestion in suggestTranslation()#13

Merged
aheinze merged 1 commit into
agentejo:masterfrom
Pervanovo:pr-bugfix-empty-suggestions
Jun 15, 2021
Merged

Bugfix set empty $suggestion in suggestTranslation()#13
aheinze merged 1 commit into
agentejo:masterfrom
Pervanovo:pr-bugfix-empty-suggestions

Conversation

@fredrikkarlsson-pervanovo

Copy link
Copy Markdown

By setting this.$suggestion = null, hideTranslation() fails since it cannot set $this.$suggestion.key = null.
This usually happens after saving a project and then clicking around if a translator service is not used.

This PR fixes this by using the same initial value for this.$suggestion as used in the initialization

@aheinze aheinze merged commit 297d7b2 into agentejo:master Jun 15, 2021
@aheinze

aheinze commented Jun 15, 2021

Copy link
Copy Markdown
Member

Thanks!

@fredrikkarlsson-pervanovo fredrikkarlsson-pervanovo deleted the pr-bugfix-empty-suggestions branch June 15, 2021 12:15
@fredrikkarlsson-pervanovo

Copy link
Copy Markdown
Author

Nice! Would be awesome if you considered to merge #7

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.

3 participants