Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: merge conflicts resolved

sriram veeraghanta3eb819c4aef4
diff --cc web/components/cycles/sidebar.tsx
index 27182247bb,1a7bf9c58b..8335baf06b
--- a/web/components/cycles/sidebar.tsx
+++ b/web/components/cycles/sidebar.tsx
@@@ -84,32 -82,10 +84,32 @@@ export const CycleDetailsSidebar: React
defaultValues,
});
- const submitChanges = (data: Partial<ICycle>) => {
+ const submitChanges = (data: Partial<ICycle>, changedProperty: string) => {
if (!workspaceSlug || !projectId || !cycleId) return;
- updateCycleDetails(workspaceSlug.toString(), projectId.toString(), cycleId.toString(), data);
+ updateCycleDetails(workspaceSlug.toString(), projectId.toString(), cycleId.toString(), data)
+ .then((res) => {
+ captureCycleEvent({
+ eventName: CYCLE_UPDATED,
+ payload: {
+ ...res,
+ changed_properties: [changedProperty],
+ element: "Right side-peek",
+ state: "SUCCESS",
+ },
+ });
+ })
+
- .catch((_) => {
++ .catch(() => {
+ captureCycleEvent({
+ eventName: CYCLE_UPDATED,
+ payload: {
+ ...data,
+ element: "Right side-peek",
+ state: "FAILED",
+ },
+ });
+ });
};
const handleCopyText = () => {