mattermost / mattermost-plugin-legal-hold

Plugin to create and manage legal holds in Mattermost
Other
5 stars 6 forks source link

GH-85 Include dependencies array in useEffect for all components #87

Closed wiggin77 closed 3 months ago

wiggin77 commented 3 months ago

Summary

The LegalHoldTable component was missing a dependency array in a useEffect hook. This caused the hook to be called on every render.

Additional dependencies were added to other components based on linter errors.

Ticket Link

Fixes https://github.com/mattermost/mattermost-plugin-legal-hold/issues/85