Skip to content

Commit 0b36a62

Browse files
committed
small improvements #2850
1 parent 9fcc845 commit 0b36a62

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/LinksMenu/EditFileAttachment.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class EditFileAttachment extends React.Component {
4242
render() {
4343
const { onCancel, onConfirm, projectMembers, loggedInUser } = this.props
4444
const { title, allowedUsers } = this.state
45-
const showVisibleToAllProjectMembersText = !(allowedUsers.length > 0)
45+
const showVisibleToAllProjectMembersText = !(allowedUsers && allowedUsers.length > 0)
4646
return (
4747
<div className="modal delete-link-modal">
4848
<div className="modal-title danger">
@@ -53,7 +53,7 @@ export class EditFileAttachment extends React.Component {
5353
<input className="edit-input" type="text" value={title} onChange={this.handleTitleChange.bind(this)} name="title"/>
5454
<br />
5555
<label for="title">File Viewers:</label>
56-
<UserAutoComplete onUpdate={this.onUserIdChange}
56+
<UserAutoComplete onUpdate={this.onUserIdChange}
5757
projectMembers={projectMembers}
5858
loggedInUser={loggedInUser}
5959
selectedUsers={this.userIdsToHandles(allowedUsers).join(',')}

src/components/LinksMenu/LinksMenu.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
}
121121

122122
.project-members-visible {
123-
margin: 10px 0;
123+
margin-top: 10px;
124124
line-height: 120%;
125125
font-size: 12px;
126126
}

0 commit comments

Comments
 (0)