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