Skip to content

Commit

Permalink
made a change in functionality to display operations of inherited int…
Browse files Browse the repository at this point in the history
…erfaces
  • Loading branch information
AsmitaChandrakar committed Mar 4, 2022
1 parent ae5f3ef commit 473867a
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -361,7 +361,11 @@ export class InterfacesComponent implements OnInit {
}

overrideInterface(inh: InterfacesApiData) {
this.interfacesData.push(inh);
const filteredInterface: InterfacesApiData = this.interfacesData.find((value) => value.name === inh.name);
if (!filteredInterface) {
const clone = JSON.parse(JSON.stringify(inh));
this.interfacesData.push(clone);
}
}

interfaceDoesNotExist(inh: InterfacesApiData): boolean {
Expand Down

0 comments on commit 473867a

Please sign in to comment.