Skip to content

Commit

Permalink
fix queue component
Browse files Browse the repository at this point in the history
  • Loading branch information
zivglik committed Jun 23, 2024
1 parent 5c5bf1f commit 8360d53
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ const ActionsQueueOrder = ({ job }) => {
const { jobId } = job;
const { rerunPipeline } = usePipeline();
const { stopPipeline } = useActions();
const onReRun = useCallback(() => rerunPipeline(jobId), [
rerunPipeline,
jobId,
]);
const onReRun = useCallback(
() => rerunPipeline(jobId),
[rerunPipeline, jobId]
);
const onStop = useCallback(() => stopPipeline(jobId), [stopPipeline, jobId]);
return (
<Button.Group className={USER_GUIDE.TABLE_JOB.ACTIONS_SELECT}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import {
ActionsQueueOrder,
} from '../QueueOrderComponents';

const Actions = (_, { job }) => <ActionsQueueOrder job={job} />;
const Actions = (_, { job }) => <ActionsQueueOrder job={job || []} />;
const Status = (_, { job }) => (
<FlexBox justify="flex-start" gutter={0}>
<Concurrency isConcurrency={job.maxExceeded} />
<Concurrency isConcurrency={job?.maxExceeded} />
&nbsp;&nbsp;
<TypeRow type={job.typeElement} />
<TypeRow type={job?.typeElement} />
</FlexBox>
);

Expand Down

0 comments on commit 8360d53

Please sign in to comment.