mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-24 11:39:22 -05:00
fix: lint warnings (#2201)
This commit is contained in:
committed by
GitHub
parent
f3f93faf1d
commit
82124a8b1c
-2
@@ -90,8 +90,6 @@ const SummaryPage = ({
|
||||
}
|
||||
}, [searchParams, resetState]);
|
||||
|
||||
console.log({ surveySummary });
|
||||
|
||||
return (
|
||||
<ContentWrapper>
|
||||
<SummaryHeader
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ const CustomFilter = ({ environmentTags, attributes, survey }: CustomFilterProps
|
||||
if (!firstMountRef.current) {
|
||||
resetState();
|
||||
}
|
||||
}, [survey?.id]);
|
||||
}, [survey?.id, resetState]);
|
||||
|
||||
// when the page loads we get total responses and iterate over the responses and questions, tags and attributes to create the filter options
|
||||
useEffect(() => {
|
||||
|
||||
@@ -78,6 +78,7 @@ export function Onboarding({
|
||||
window.removeEventListener("message", handleMessageEvent, false);
|
||||
};
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [iframeVisible, currentStep]); // Depend on iframeVisible and currentStep to re-evaluate when needed
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@@ -56,7 +56,7 @@ export function Survey({
|
||||
} else {
|
||||
return survey.questions.find((q) => q.id === questionId);
|
||||
}
|
||||
}, [questionId, survey]);
|
||||
}, [questionId, survey, history]);
|
||||
const contentRef = useRef<HTMLDivElement | null>(null);
|
||||
const showProgressBar = !survey.styling?.hideProgressBar;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user