Skip to content

Commit

Permalink
Fix image upload for group chats. Formk's dirty property is now ignor…
Browse files Browse the repository at this point in the history
…ed when new image was selected.
  • Loading branch information
LemonsLover committed Feb 12, 2024
1 parent f12671f commit fcae42e
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Geesemon.Web/wwwroot/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": {
"main.css": "/static/css/main.d5bb6875.css",
"main.js": "/static/js/main.ef66e41e.js",
"main.js": "/static/js/main.28f2434e.js",
"static/media/exit.svg": "/static/media/exit.f677459ab0bd060121fc5df5a1808023.svg",
"static/media/settings.svg": "/static/media/settings.5ce75b923316447e65b4193b76a349b5.svg",
"static/media/microphone.svg": "/static/media/microphone.0ee15e41889ee128084bfb787e311b3c.svg",
Expand Down Expand Up @@ -40,10 +40,10 @@
"static/media/logout.svg": "/static/media/logout.a7631ed82996a1e1ee28481503244e15.svg",
"static/media/threeDots.svg": "/static/media/threeDots.687e2c923110b3319185cb227236b412.svg",
"main.d5bb6875.css.map": "/static/css/main.d5bb6875.css.map",
"main.ef66e41e.js.map": "/static/js/main.ef66e41e.js.map"
"main.28f2434e.js.map": "/static/js/main.28f2434e.js.map"
},
"entrypoints": [
"static/css/main.d5bb6875.css",
"static/js/main.ef66e41e.js"
"static/js/main.28f2434e.js"
]
}
2 changes: 1 addition & 1 deletion Geesemon.Web/wwwroot/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><link rel="manifest" href="/manifest.json"/><title>Geesemon</title><script defer="defer" src="/static/js/main.ef66e41e.js"></script><link href="/static/css/main.d5bb6875.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div id="modal"></div></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="description" content="Web site created using create-react-app"/><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"><link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"><meta name="msapplication-TileColor" content="#da532c"><meta name="theme-color" content="#ffffff"><link rel="manifest" href="/manifest.json"/><title>Geesemon</title><script defer="defer" src="/static/js/main.28f2434e.js"></script><link href="/static/css/main.d5bb6875.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><div id="modal"></div></body></html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const ChatsUpdateGroup: FC<Props> = ({ chat }) => {
<BigPrimaryButton
onClick={formik.submitForm}
loading={updateChatLoading}
disabled={!(formik.isValid && formik.dirty)}
disabled={!(formik.isValid && (formik.dirty || newImage))}
>
Submit
</BigPrimaryButton>
Expand Down

0 comments on commit fcae42e

Please sign in to comment.