Skip to content

Commit

Permalink
Assume that all clusters are managed while fetching info
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Apr 25, 2023
1 parent 7bf634d commit c917c68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/Cluster/Cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Cluster = ({ cluster, clusterId }) => {
const clusterInfo = useGetClusterInfoQuery({
id: clusterId,
});
const isManaged = get(clusterInfo, 'data.managed', false);
const isManaged = get(clusterInfo, 'data.managed', true);

// TODO: make breadcrumbs take display name from GET /cluster/id/info
return (
Expand Down
2 changes: 1 addition & 1 deletion src/Components/ClusterTabs/ClusterTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const ClusterTabs = () => {
const clusterInfo = useGetClusterInfoState({
id: clusterId,
});
const isManaged = get(clusterInfo, 'data.managed', false);
const isManaged = get(clusterInfo, 'data.managed', true);

const [activeKey, setActiveKey] = useState(() => {
const activeTab = searchParams.get('active_tab');
Expand Down

0 comments on commit c917c68

Please sign in to comment.