From 6c27d87612f848dc37ffdbe98f361625c53ff068 Mon Sep 17 00:00:00 2001 From: Dave Tickle Date: Thu, 6 Apr 2023 17:41:30 +0100 Subject: [PATCH] fix: revert missing deps array and skip linting for it --- src/pages/loadData/LoadData.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/loadData/LoadData.tsx b/src/pages/loadData/LoadData.tsx index b611da5..2988499 100644 --- a/src/pages/loadData/LoadData.tsx +++ b/src/pages/loadData/LoadData.tsx @@ -1,4 +1,5 @@ /** @jsxImportSource @emotion/react */ +/* eslint-disable react-hooks/exhaustive-deps */ import React, { useState, useEffect } from "react"; import { @@ -74,7 +75,7 @@ const LoadData = (props: LoadDataPageProps) => { }; init(); - }); + }, []); const getInitialSelectedRuleState = (rules: Rule[]): string[] => { if (rules.length === 0) {