File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
components/sendgrid/actions
send-email-multiple-recipients
send-email-single-recipient Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,9 @@ export default {
9393 * @param {object } value the value to check for returning `undefined`.
9494 */
9595 convertEmptyStringToUndefined ( value ) {
96+ if ( Array . isArray ( value ) && value . length === 0 ) {
97+ return undefined ;
98+ }
9699 if ( value === "" || value === null ) {
97100 return undefined ;
98101 }
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ export default {
226226 } ;
227227 }
228228 this . sendAt = this . convertEmptyStringToUndefined ( Date . parse ( this . sendAt ) ) ;
229- if ( this . sendAt != null ) {
229+ if ( this . sendAt ) {
230230 constraints . sendAt = this . getIntegerGtZeroConstraint ( ) ;
231231 }
232232 if ( this . asm || this . asmGroupsToDisplay ) {
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ export default {
250250 } ;
251251 }
252252 this . sendAt = this . convertEmptyStringToUndefined ( Date . parse ( this . sendAt ) ) ;
253- if ( this . sendAt != null ) {
253+ if ( this . sendAt ) {
254254 constraints . sendAt = this . getIntegerGtZeroConstraint ( ) ;
255255 }
256256 //Executes validation
You can’t perform that action at this time.
0 commit comments