From aaece4875b114b9c59c4fdc1bb736d90b7d052a6 Mon Sep 17 00:00:00 2001 From: Joel Keyser Date: Wed, 25 Oct 2023 23:02:13 -0500 Subject: [PATCH] touchup: only set topic.description if changed --- src/web/topic/components/Surface/TopicDetails.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web/topic/components/Surface/TopicDetails.tsx b/src/web/topic/components/Surface/TopicDetails.tsx index 6114cf84..c8fad422 100644 --- a/src/web/topic/components/Surface/TopicDetails.tsx +++ b/src/web/topic/components/Surface/TopicDetails.tsx @@ -50,6 +50,7 @@ export const TopicDetails = () => {
{ void handleSubmit((data) => { + if (topic.description === data.description) return; setTopicDetails(data.description); })(event); }}