Skip to content

Commit

Permalink
component mount workaround no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Oct 20, 2023
1 parent 441caab commit 71ff82f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/material-web/src/components/FileArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ export default function FileArray({ name, label, subform, hint, maxRows }) {
setFiles = useCallback(
(files) => {
if (!loadedRef.current) {
// Component mounted
loadedRef.current = -1;
return;
} else if (loadedRef.current === -1) {
// initialFiles loaded
let fileIndex = 0;
loadedRef.current = initialValue.map((row) => {
Expand Down

0 comments on commit 71ff82f

Please sign in to comment.