Skip to content

Commit

Permalink
Merge pull request #295 from checkr/zz/fix-constraints-ui
Browse files Browse the repository at this point in the history
Fix UI for constraint deletion
  • Loading branch information
zhouzhuojie authored Oct 11, 2019
2 parents be93658 + 7d673cc commit f106032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/flagr-ui/src/components/Flag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ export default {
Axios.delete(
`${API_URL}/flags/${this.flagId}/segments/${segment.id}/constraints/${constraint.id}`
).then(() => {
const index = segment.constraints.findIndex(constraint => constraint.id === constraint.id)
const index = segment.constraints.findIndex(c => c.id === constraint.id)
segment.constraints.splice(index, 1)
this.$message.success('constraint deleted')
}, handleErr.bind(this))
Expand Down

0 comments on commit f106032

Please sign in to comment.