Skip to content

Commit

Permalink
Merge pull request supabase#240 from dymium-io/#supabase#238
Browse files Browse the repository at this point in the history
[#supabase#238] Update BuildRulesClass.tsx
  • Loading branch information
gazillion101 authored Apr 9, 2023
2 parents f69416c + 536e6ac commit 43a3404
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/js/packages/portal/src/App/BuildRulesClass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ const { SearchBar, ClearSearchButton } = Search;
e => {
if (window.confirm("Are you sure you want to delete \n" + row["name"] + "\npolicy suggestion?")) {
let rules = this.state.rules.filter(rule => {
if (rule.index === row.index) return false
if (rule.id === row.id) {
debugger
return false
}
return true
})
this.setState({ rules })
Expand Down Expand Up @@ -471,7 +474,7 @@ const { SearchBar, ClearSearchButton } = Search;
required
pattern="[\w '&%]+"
value={this.state.name}
onChange={e => this.setState({ name: e.target.value })}
onChange={e => this.setState({ name: e.target.value.trim() })}
/>
<Form.Control.Feedback >Looks good!</Form.Control.Feedback>
<Form.Control.Feedback type="invalid" >
Expand Down

0 comments on commit 43a3404

Please sign in to comment.