Skip to content

A local-first personal finance app

fix report drag and drop reordering (#6763)

Matt Fiddamanf55a42d81764
diff --git a/packages/desktop-client/src/components/reports/ReportCard.tsx b/packages/desktop-client/src/components/reports/ReportCard.tsx
index a9e458da55..ef6a48a8e0 100644
--- a/packages/desktop-client/src/components/reports/ReportCard.tsx
+++ b/packages/desktop-client/src/components/reports/ReportCard.tsx
@@ -104,12 +104,12 @@ export function ReportCard({
</View>
);
- if (to) {
+ if (to && !isEditing && !disableClick) {
return (
<Layout {...layoutProps}>
<Button
variant="bare"
- onPress={isEditing || disableClick ? undefined : () => navigate(to)}
+ onPress={() => navigate(to)}
style={{
height: '100%',
width: '100%',
diff --git a/upcoming-release-notes/6763.md b/upcoming-release-notes/6763.md
new file mode 100644
index 0000000000..20ab359acf
--- /dev/null
+++ b/upcoming-release-notes/6763.md
@@ -0,0 +1,6 @@
+---
+category: Bugfixes
+authors: [matt-fidd]
+---
+
+Fix report drag and drop reordering