Skip to content

Commit

Permalink
Merge pull request #98 from vikram-raj/fix-tasksList
Browse files Browse the repository at this point in the history
OCPBUGS-33232: Fix Tasks lists from another namespace
  • Loading branch information
openshift-merge-bot[bot] authored May 3, 2024
2 parents d28b6db + 476462e commit 9108fa3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/pipelines-tasks/TasksList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as React from 'react';
import { useTranslation } from 'react-i18next';
import { useParams } from 'react-router-dom-v5-compat';
import {
K8sResourceCommon,
ListPageBody,
Expand Down Expand Up @@ -31,6 +32,8 @@ const TasksList: React.FC<TaskListProps> = ({
}) => {
const { t } = useTranslation('plugin__pipelines-console-plugin');
const columns = useDefaultColumns();
const { ns } = useParams();
namespace = namespace || ns;
const [data, loaded, loadError] = useK8sWatchResource<K8sResourceCommon[]>({
groupVersionKind: getGroupVersionKindForModel(TaskModel),
isList: true,
Expand Down

0 comments on commit 9108fa3

Please sign in to comment.