Skip to content

Commit 1e94f85

Browse files
committed
chore: remove extra validation
1 parent efdf26f commit 1e94f85

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/components/CIPipelineN/VariableDataTable/validations.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,6 @@ export const validateInputOutputVariableCell = ({
130130
isValid: false,
131131
}
132132
}
133-
134-
// test for max length if variable is string
135-
if (format === VariableTypeFormat.STRING && variableValue && !!value && value.length > 255) {
136-
return {
137-
errorMessages: [VARIABLE_DATA_TABLE_CELL_ERROR_MSGS.MAX_LENGTH_255],
138-
isValid: false,
139-
}
140-
}
141133
}
142134

143135
if (isInputVariable && key === 'val') {
@@ -163,6 +155,7 @@ export const validateInputOutputVariableCell = ({
163155
}
164156
}
165157

158+
// test for max length if variable is string
166159
if (key === 'val' && format === VariableTypeFormat.STRING && variableValue && !!value && value.length > 255) {
167160
return {
168161
errorMessages: [VARIABLE_DATA_TABLE_CELL_ERROR_MSGS.MAX_LENGTH_255],

0 commit comments

Comments
 (0)