mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 03:03:02 -06:00
[bugfix] Reset emoji fields on upload error (#2905)
This commit is contained in:
parent
f24ce34c3a
commit
578a4e0cf5
6 changed files with 206 additions and 122 deletions
|
|
@ -51,9 +51,9 @@ export default function MutationButton({
|
|||
}
|
||||
|
||||
return (
|
||||
<div className={wrapperClassName}>
|
||||
<div className={wrapperClassName ? wrapperClassName : "mutation-button"}>
|
||||
{(showError && targetsThisButton && result.error) &&
|
||||
<Error error={result.error} />
|
||||
<Error error={result.error} reset={result.reset} />
|
||||
}
|
||||
<button
|
||||
type="submit"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue