Skip to content

Commit

Permalink
Re-allow rules to be created without variants (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Jun 9, 2022
1 parent 115f4ad commit 72df612
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions ui/src/components/Flags/Targeting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,7 @@
</template>

<script>
import {
capitalize,
clone,
cloneDeep,
find,
forEach,
isEmpty,
map,
} from "lodash";
import { capitalize, clone, cloneDeep, find, forEach, map } from "lodash";
import draggable from "vuedraggable";
Expand Down Expand Up @@ -345,10 +337,7 @@ export default {
return this.flag.variants && this.flag.variants.length > 0;
},
canAddRule() {
return (
this.isPresent(this.newRule.segmentKey) &&
!isEmpty(this.newRule.distributions)
);
return this.isPresent(this.newRule.segmentKey);
},
},
mounted() {
Expand Down

0 comments on commit 72df612

Please sign in to comment.