Improved activity editor re-renders (#4149)
* Refactor task count * Fixed show page rerender * Less rerenders and way better title and body UX * Finished breaking down activity editor subscriptions * Removed console.log * Last console.log * Fixed bugs and cleaned
This commit is contained in:
@ -196,7 +196,7 @@ export const CommandMenu = () => {
|
||||
id: activity.id,
|
||||
label: activity.title ?? '',
|
||||
to: '',
|
||||
onCommandClick: () => openActivityRightDrawer(activity),
|
||||
onCommandClick: () => openActivityRightDrawer(activity.id),
|
||||
})),
|
||||
[activities, openActivityRightDrawer],
|
||||
);
|
||||
@ -372,7 +372,7 @@ export const CommandMenu = () => {
|
||||
Icon={IconNotes}
|
||||
key={activity.id}
|
||||
label={activity.title ?? ''}
|
||||
onClick={() => openActivityRightDrawer(activity)}
|
||||
onClick={() => openActivityRightDrawer(activity.id)}
|
||||
/>
|
||||
</SelectableItem>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user