Skip to content

Commit

Permalink
style: no-prototype-builtins rule
Browse files Browse the repository at this point in the history
  • Loading branch information
tuliomir committed Aug 19, 2024
1 parent f5a8b20 commit cf05262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DagComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class DagComponent extends React.Component {
const newLinks = [];
for (const parent of parents) {
// Validate if parent is in the data, otherwise no need to add a link
if (this.graph.hasOwnProperty(parent)) {
if (this.graph[parent]) {
// Creating link for each parent
const linkData = {
source: {
Expand Down Expand Up @@ -161,7 +161,7 @@ class DagComponent extends React.Component {
const newLinks = [];
for (const parent of parents) {
// Validate if parent is in the data, otherwise no need to add a link
if (this.graph.hasOwnProperty(parent)) {
if (this.graph[parent]) {
// Creating link for each parent
const linkData = {
source: {
Expand Down

0 comments on commit cf05262

Please sign in to comment.