Skip to content

Commit

Permalink
Fixed issue codeuino#637
Browse files Browse the repository at this point in the history
  • Loading branch information
anipaul2 committed Feb 10, 2022
1 parent 873b006 commit 114741f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 0 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/user/organization/popups/Admins.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ class Admins extends Component {
const { onHide, show } = this.props
const { inviteLink, whoCanSendInvite } = this.state
const adminList = [...this.state.admins]
const clear = () => {
this.setState({query: "" })
onHide()
}
let admins = adminList.map((item) => (
<Row className="modal__member" id="p1" key={item._id}>
<div className="member__image">
Expand All @@ -123,7 +127,7 @@ class Admins extends Component {
));
return (
<Modal
onHide={onHide}
onHide={clear}
show={show}
size="md"
aria-labelledby="contained-modal-title-vcenter"
Expand Down
8 changes: 6 additions & 2 deletions src/user/organization/popups/Members.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ class Members extends Component {
render() {
const { onHide, show } = this.props
const { isAdmin, inviteLink, whoCanSendInvite } = this.state
const membersList = [ ...this.state.members]
const membersList = [ ...this.state.members]
const clear = () => {
this.setState({ query: "" })
onHide()
}
let members = membersList.map((item) => (
<Row className="modal__member" id="p1" key={item._id}>
<div className="member__image">
Expand Down Expand Up @@ -142,7 +146,7 @@ class Members extends Component {
));
return (
<Modal
onHide={onHide}
onHide={clear}
show={show}
size="md"
aria-labelledby="contained-modal-title-vcenter"
Expand Down

0 comments on commit 114741f

Please sign in to comment.