Skip to content

Commit

Permalink
fix: missed props by automatic rename
Browse files Browse the repository at this point in the history
  • Loading branch information
devcatalin committed Aug 12, 2021
1 parent 11f19d9 commit d1b5769
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/redux/services/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ export function extractK8sResources(fileContent: string, relativePath: string) {
export function getLinkedResources(resource: K8sResource) {
const linkedResourceIds: string[] = [];
resource.refs
?.filter(ref => !isUnsatisfiedRef(ref.refType))
?.filter(ref => !isUnsatisfiedRef(ref.type))
.forEach(ref => {
if (ref.targetResource) {
linkedResourceIds.push(ref.targetResource);
if (ref.targetResourceId) {
linkedResourceIds.push(ref.targetResourceId);
}
});

Expand Down Expand Up @@ -589,7 +589,8 @@ function processRefs(resourceMap: ResourceMapType) {

const findSatisfiedRefOnPosition = (refPos: RefPosition) => {
return resource.refs?.find(
ref => !isUnsatisfiedRef(ref.refType) && ref.refPos?.column === refPos.column && ref.refPos.line === refPos.line
ref =>
!isUnsatisfiedRef(ref.type) && ref.position?.column === refPos.column && ref.position.line === refPos.line
);
};

Expand Down

0 comments on commit d1b5769

Please sign in to comment.