Skip to content

Commit

Permalink
Resource List hotfix (#3923)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdess09 authored Nov 2, 2023
1 parent e447f83 commit de981b6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ResourceList: React.FC<ResourceListField> = (props) => {
!formState?.variables?.currentChart?.name ||
!formState?.variables?.namespace
) {
return () => {};
return () => { };
}

let { group, version, resource } = props.context.config;
Expand All @@ -50,7 +50,7 @@ const ResourceList: React.FC<ResourceListField> = (props) => {
// attempt to find a corresponding name and label in the current array
let foundMatch = false;

resourceList.forEach((resource, index) => {
Array.isArray(resourceList) && resourceList?.forEach((resource, index) => {
if (resource.name == name && resource.label == label) {
foundMatch = true;

Expand Down Expand Up @@ -92,7 +92,7 @@ const ResourceList: React.FC<ResourceListField> = (props) => {

return (
<ResourceListWrapper>
{resourceList?.map((resource: any, i: number) => {
{Array.isArray(resourceList) && resourceList?.map((resource: any, i: number) => {
if (resource.data) {
return (
<ExpandableResource
Expand Down

0 comments on commit de981b6

Please sign in to comment.