useEffect(() => {
onSearchChange(searchValue);
- }, [searchValue]);
+ }, [onSearchChange, searchValue]);
return (<Card data-cy='collection-files-panel' className={classes.root}>
<CardHeader
break;
}
case ProcessStatusFilter.CANCELLED:
- case ProcessStatusFilter.FAILED:
case ProcessStatusFilter.LOCKED:
case ProcessStatusFilter.QUEUED:
case ProcessStatusFilter.RUNNING: {
break;
}
case ProcessStatusFilter.CANCELLED:
- case ProcessStatusFilter.FAILED:
case ProcessStatusFilter.LOCKED:
case ProcessStatusFilter.RUNNING: {
fb.addEqual('container.state', activeStatusFilter);
export const saveRequestedDate = () =>
(dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
- const date = formatDate((new Date).toISOString());
+ const date = formatDate((new Date()).toISOString());
services.virtualMachineService.saveRequestedDate(date);
dispatch<any>(loadRequestedDate());
};
return () => {
window.removeEventListener('storage', handleStorageEvents);
};
- }, []);
+ });
const handleStorageEvents = (e: StorageEvent) => {
if (e.key === LAST_ACTIVE_TIMESTAMP) {
const handleOnAction = () => {
// Notify the other tabs there was some activity.
- const now = (new Date).getTime();
+ const now = (new Date()).getTime();
localStorage.setItem(LAST_ACTIVE_TIMESTAMP, now.toString());
};
return getWorkflowInputs(definition);
}
}
- return;
+ return undefined;
}
renderInputsTable() {