From a4346ead983cd0dc78b9bce3fea2ae3d88bc8c6e Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 26 Jul 2026 01:53:28 +0100 Subject: [PATCH] Fixed warnings. --- .../Dashboard/Production/Printers/SlicerIntegration.jsx | 2 +- src/components/Dashboard/common/TagsInput.jsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Dashboard/Production/Printers/SlicerIntegration.jsx b/src/components/Dashboard/Production/Printers/SlicerIntegration.jsx index d90d537..858955a 100644 --- a/src/components/Dashboard/Production/Printers/SlicerIntegration.jsx +++ b/src/components/Dashboard/Production/Printers/SlicerIntegration.jsx @@ -28,7 +28,7 @@ const SlicerIntegration = () => { useEffect(() => { setPrimaryColorOverride('#00baa8') - }, []) + }, [setPrimaryColorOverride]) const [objectFormState, setEditFormState] = useState({ isEditing: false, diff --git a/src/components/Dashboard/common/TagsInput.jsx b/src/components/Dashboard/common/TagsInput.jsx index 7a0be0d..f79f744 100644 --- a/src/components/Dashboard/common/TagsInput.jsx +++ b/src/components/Dashboard/common/TagsInput.jsx @@ -21,7 +21,10 @@ const TagsInput = ({ const [loading, setLoading] = useState(false) const [delayedLoading, setDelayedLoading] = useState(true) - const tags = Array.isArray(value) ? value : [] + const tags = useMemo( + () => (Array.isArray(value) ? value : []), + [value] + ) useEffect(() => { let cancelled = false