From e0cdd35f131448bf30a4fce69daddc400393c1a6 Mon Sep 17 00:00:00 2001 From: Partha Aji Date: Tue, 24 Oct 2023 23:30:05 -0400 Subject: [PATCH] Refs #36793 - lint --- .../react_app/components/HostDetails/index.js | 9 +++++---- .../components/PF4/TableIndexPage/Table/TableHooks.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/webpack/assets/javascripts/react_app/components/HostDetails/index.js b/webpack/assets/javascripts/react_app/components/HostDetails/index.js index 74d7ecfbd1bf..2bb487f78e8f 100644 --- a/webpack/assets/javascripts/react_app/components/HostDetails/index.js +++ b/webpack/assets/javascripts/react_app/components/HostDetails/index.js @@ -40,10 +40,12 @@ import { useAPI } from '../../common/hooks/API/APIHooks'; import TabRouter from './Tabs/TabRouter'; import RedirectToEmptyHostPage from './EmptyState'; import BreadcrumbBar from '../BreadcrumbBar'; -import { foremanUrl } from '../../common/helpers'; import { CardExpansionContextWrapper } from './CardExpansionContext'; import Head from '../Head'; -import { useForemanSettings, useForemanHostsPageUrl } from '../../Root/Context/ForemanContext'; +import { + useForemanSettings, + useForemanHostsPageUrl, +} from '../../Root/Context/ForemanContext'; const HostDetails = ({ match: { @@ -113,8 +115,7 @@ const HostDetails = ({ switcherItemUrl: '/new/hosts/:name', }} breadcrumbItems={[ - { caption: __('Hosts'), - url: useForemanHostsPageUrl() }, + { caption: __('Hosts'), url: useForemanHostsPageUrl() }, { caption: displayFqdnForHosts ? response.name diff --git a/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableHooks.js b/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableHooks.js index 02479d3e65f5..aea918fa5394 100644 --- a/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableHooks.js +++ b/webpack/assets/javascripts/react_app/components/PF4/TableIndexPage/Table/TableHooks.js @@ -54,7 +54,7 @@ class ReactConnectedSet extends Set { export const useSet = initialArry => { const [, setToggle] = useState(Date.now()); // needed because mutating a Ref won't cause React to rerender - const forceRender = () => setToggle(Symbol()); + const forceRender = () => setToggle(Symbol("useSet")); const set = useRef(new ReactConnectedSet(initialArry, forceRender)); return set.current; };