Skip to content

Commit

Permalink
fix: Form can't save when creating a workload (#3416)
Browse files Browse the repository at this point in the history
Signed-off-by: TheYoungManLi <cjl@kubesphere.io>
  • Loading branch information
weili520 authored Jul 7, 2022
1 parent 1c41118 commit a49644a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ export default class MountConfig extends React.Component {
}

relativePathValidator = (rule, value, callback) => {
if (!value) {
return callback()
}
const absPath = value.some(item => /^\//.test(item.path))
if (absPath) {
return callback({ message: t('PLEASE_USE_RELATIVE_PATH') })
Expand Down

0 comments on commit a49644a

Please sign in to comment.