Skip to content

Commit 5c8c503

Browse files
committed
v3.1.4 hotfix to handle color patter sent as list
1 parent f72bdc3 commit 5c8c503

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/services/users/users.hooks.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ module.exports = {
5656
pattern: {
5757
required: false,
5858
regex: /^#[0-9a-fA-F]{2,6}(,#[0-9a-fA-F]{2,6})*$/,
59+
before: d => (Array.isArray(d) ? d.join(',') : d),
5960
},
6061
...VALIDATE_EMAIL,
6162
...VALIDATE_PASSWORD,

0 commit comments

Comments
 (0)