fix(app): added multiple eslint-disable-next-line
Build and Push Docker image / build-and-push (push) Successful in 2m28s Details

This commit is contained in:
Valentin Kolb 2024-10-31 18:07:19 +01:00
parent d698a2bfdb
commit 50a22f6187
3 changed files with 5 additions and 0 deletions

View File

@ -62,14 +62,17 @@ export const EmailModal = ({onSuccess, onCancel, recipients, subject, content, d
useEffect(() => { useEffect(() => {
formValues.setFieldValue("recipients", recipients ?? []) formValues.setFieldValue("recipients", recipients ?? [])
// eslint-disable-next-line
}, [recipients]) }, [recipients])
useEffect(() => { useEffect(() => {
formValues.setFieldValue("subject", subject ?? "") formValues.setFieldValue("subject", subject ?? "")
// eslint-disable-next-line
}, [subject]) }, [subject])
useEffect(() => { useEffect(() => {
formValues.setFieldValue("content", content ?? "") formValues.setFieldValue("content", content ?? "")
// eslint-disable-next-line
}, [content]) }, [content])
const [testEmailWasSent, setTestEmailWasSent] = useState(false) const [testEmailWasSent, setTestEmailWasSent] = useState(false)

View File

@ -36,6 +36,7 @@ export default function LoadInfinitQueryModal<T>({start, query, onSuccess, onErr
if (start && query.isFetched && !query.hasNextPage) { if (start && query.isFetched && !query.hasNextPage) {
onSuccess?.() onSuccess?.()
} }
// eslint-disable-next-line
}, [start, query, onSuccess]) }, [start, query, onSuccess])
const totalItems = query.data?.pages?.[0].totalItems || 0 const totalItems = query.data?.pages?.[0].totalItems || 0

View File

@ -64,6 +64,7 @@ export default function UserMenuModal() {
} }
formValues.setInitialValues(values) formValues.setInitialValues(values)
formValues.setValues(values) formValues.setValues(values)
// eslint-disable-next-line
}, [user]); }, [user]);
const mutation = useMutation({ const mutation = useMutation({