Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Fix id is readonly when update distrib
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorlonDeezer committed Nov 12, 2021
1 parent 1694d8e commit 16b6fa3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion browser/flagr-ui/src/components/Flag.vue
Expand Up @@ -743,7 +743,11 @@ export default {
saveDistribution(segment) {
const distributions = Object.values(this.newDistributions).filter(
distribution => distribution.percent !== 0
);
).map(distribution => {
let dist = clone(distribution)
delete dist.id;
return dist
});
Axios.put(
`${API_URL}/flags/${this.flagId}/segments/${segment.id}/distributions`,
Expand Down

0 comments on commit 16b6fa3

Please sign in to comment.