Skip to content

Commit 28a91b2

Browse files
authored
Merge pull request #63 from ciatph/dev
v1.1.3
2 parents 5f00921 + 948f7f8 commit 28a91b2

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.env
22
.vscode
3+
*.zip

client/src/components/common/userform/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ function UserForm (props) {
5454
<TextField
5555
id='password'
5656
label='Enter password'
57+
placeholder={type === 'create' ? 'Enter password' : 'Password will not be updated if left blank' }
5758
variant='outlined'
5859
size='small'
5960
disabled={loadstatus.isLoading}

client/src/utils/service/service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export default class Service {
7171
const body = {}
7272

7373
fields.forEach((item) => {
74-
if (info[item.toLowerCase()] !== undefined && info[item.toLowerCase()] !== '') {
75-
body[item] = info[item.toLowerCase()]
74+
if (info[item.toLowerCase()] !== undefined && (item !== 'password') ? info[item] !== '' : true) {
75+
body[item] = info[item]
7676
} else {
7777
throw new Error('Please check your input.')
7878
}

0 commit comments

Comments
 (0)