Skip to content

Commit 595ab8f

Browse files
committed
Updated <=0 to < 0 as this will not throw error line 133 lifecycle.js
1 parent 6393ae2 commit 595ab8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • x-pack/legacy/plugins/index_lifecycle_management/public/store/selectors

x-pack/legacy/plugins/index_lifecycle_management/public/store/selectors/lifecycle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export const validatePhase = (type, phase, errors) => {
130130
} else if (
131131
(numberedAttribute === PHASE_ROLLOVER_MINIMUM_AGE ||
132132
numberedAttribute === PHASE_PRIMARY_SHARD_COUNT) &&
133-
phase[numberedAttribute] <= 0
133+
phase[numberedAttribute] < 0
134134
) {
135135
phaseErrors[numberedAttribute] = [positiveNumbersEqualAboveZeroErrorMessage];
136136
}

0 commit comments

Comments
 (0)