Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promgen.vue.js: Fix silence form's delete label #468

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

vincent-olivert-riera
Copy link
Contributor

Before creating the silence, the silence form appears and we have the possibility to remove any labels that were added by default. When doing so, an error like this one happens:

TypeError: this.$delete is not a function

The error occurs because the "$delete" instance method [1] has been removed in Vue 3 [2], but we forgot to adapt this part of the code when we did the migration.

1: https://v2.vuejs.org/v2/api/#vm-delete
2: https://v3-migration.vuejs.org/breaking-changes/#removed-apis

Before creating the silence, the silence form appears and we have the
possibility to remove any labels that were added by default. When doing
so, an error like this one happens:

  TypeError: this.$delete is not a function

The error occurs because the "$delete" instance method [1] has been
removed in Vue 3 [2], but we forgot to adapt this part of the code when
we did the migration.

1: https://v2.vuejs.org/v2/api/#vm-delete
2: https://v3-migration.vuejs.org/breaking-changes/#removed-apis
@vincent-olivert-riera vincent-olivert-riera requested a review from a team as a code owner December 27, 2023 06:10
@kfdm kfdm merged commit 63163c2 into master Jan 11, 2024
5 checks passed
@kfdm kfdm deleted the fix-silence-form-remove-label branch January 11, 2024 00:35
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.

2 participants