Skip to content

Commit

Permalink
changes based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Sep 11, 2019
1 parent 5894836 commit 5860819
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class JobValidator {
private _jobCreator: JobCreatorType;
private _validationSummary: ValidationSummary;
private _lastJobConfig: string;
private _validateTimeout: NodeJS.Timeout | null = null;
private _validateTimeout: ReturnType<typeof setTimeout> | null = null;
private _existingJobsAndGroups: ExistingJobsAndGroups;
private _basicValidations: BasicValidations = {
jobId: { valid: true },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export const Wizard: FC<Props> = ({
);

useEffect(() => {
// IIFE to run the validation. the useEffect callback can't be async
jobValidator.validate(() => {
setJobValidatorUpdate(jobValidatorUpdated);
});
Expand Down

0 comments on commit 5860819

Please sign in to comment.