aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-01-12 22:10:47 +0800
committercrupest <crupest@outlook.com>2021-01-12 22:10:47 +0800
commit9686bab8ec3008623c1f8827df8d831a70ce5e6b (patch)
tree0666b256dd17ba06bf1574ad0a36bffe244c3df2 /FrontEnd/src
parent2dbddec6a0419def50efd8136f1cab5dc35fcff3 (diff)
downloadtimeline-9686bab8ec3008623c1f8827df8d831a70ce5e6b.tar.gz
timeline-9686bab8ec3008623c1f8827df8d831a70ce5e6b.tar.bz2
timeline-9686bab8ec3008623c1f8827df8d831a70ce5e6b.zip
...
Diffstat (limited to 'FrontEnd/src')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx8
1 files changed, 2 insertions, 6 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
index 5c87756c..5833c541 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
@@ -132,13 +132,9 @@ export default function TimelinePageTemplate<TManageItem>(
}
})();
- const closeDialog = React.useCallback((): void => {
- setDialog(null);
- }, []);
-
- let dialogElement: React.ReactElement | undefined;
-
const timeline = timelineAndStatus?.data;
+ let dialogElement: React.ReactElement | undefined;
+ const closeDialog = (): void => setDialog(null);
if (dialog === "property") {
if (timeline == null || timeline === "notexist") {