cbothner/react-activestorage-provider

Reset files using {} or []

Closed this issue · 1 comments

state is initialized using [] but reset uses {}

might be more consistent (and clearer type-wise) to just use one

onResetFiles: uploading => this.setState({ files: {}, uploading }),

Nope nvm, something just got mixed up in my editor