From 560d8d4fb982c43c6821cbbe55ac550fb26c2bf5 Mon Sep 17 00:00:00 2001 From: Jason Madigan Date: Wed, 21 Aug 2024 09:02:55 +0100 Subject: [PATCH] more eslint errors --- src/PolicyTopology.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PolicyTopology.js b/src/PolicyTopology.js index 71a9243..215ad81 100644 --- a/src/PolicyTopology.js +++ b/src/PolicyTopology.js @@ -1,6 +1,6 @@ import React, { useEffect, useRef, useCallback, useState } from 'react'; import * as d3 from 'd3'; -import 'd3-graphviz'; +import { graphviz } from 'd3-graphviz'; // eslint-disable-line no-unused-vars import graphlib from 'graphlib'; import * as dot from 'graphlib-dot'; import { Dropdown, DropdownToggle, DropdownItem, Title, Button } from '@patternfly/react-core'; @@ -108,6 +108,7 @@ const PolicyTopology = ({ dotString }) => { setSelectedLabel('Select a resource'); setFilteredDot(dotString); }; + useEffect(() => { if (containerRef.current && filteredDot) { const renderGraph = () => {