Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eslint warnings #394

Merged
merged 6 commits into from
Jul 5, 2024
Merged

Eslint warnings #394

merged 6 commits into from
Jul 5, 2024

Conversation

KaradzaJuraj
Copy link
Collaborator

@KaradzaJuraj KaradzaJuraj commented Jul 3, 2024

📑 Description

  • fixes eslint warnings

✅ Checks

  • I have performed a self-review of my code
  • Remove DS_Store

@KaradzaJuraj KaradzaJuraj requested a review from a team as a code owner July 3, 2024 14:43
@@ -138,7 +132,7 @@ const EditModule = () => {

let { moduleName } = useParams();

const mapsToArray = (fields: any[], values: any): any => {
const mapsToArray = useCallback((fields: any[], values: any): any => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

useCallback will return a memoized version of the callback that only changes if one of the inputs has changed.

@petar-cvit petar-cvit merged commit 5a844cb into main Jul 5, 2024
1 check passed
@petar-cvit petar-cvit deleted the eslint-warnings branch July 5, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants