Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: entity data click on project icon go to not working (#319)

gbirmand7c6ef016168
diff --git a/js/app/packages/app/component/UnifiedListView.tsx b/js/app/packages/app/component/UnifiedListView.tsx
index 33881f0f4b..579c6af61b 100644
--- a/js/app/packages/app/component/UnifiedListView.tsx
+++ b/js/app/packages/app/component/UnifiedListView.tsx
@@ -508,7 +508,7 @@ export function UnifiedListView(props: UnifiedListViewProps) {
// NOTE: these filters are required because the backend doesn't support these filters yet
createEffect(() => {
- let filterFns: EntityFilter<EntityData>[] = [];
+ const filterFns: EntityFilter<EntityData>[] = [];
if (importantFilter()) filterFns.push(importantFilterFn);
@@ -520,7 +520,7 @@ export function UnifiedListView(props: UnifiedListViewProps) {
});
createEffect(() => {
- let filterFns: EntityFilter<EntityData>[] = [];
+ const filterFns: EntityFilter<EntityData>[] = [];
const projectFilter_ = projectFilter();
if (projectFilter_) {
diff --git a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
index 6598c41154..2caae01138 100644
--- a/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
+++ b/js/app/packages/macro-entity/src/components/EntityWithEverything.tsx
@@ -327,7 +327,7 @@ export function EntityWithEverything(
// the split. Those buttons should have a 'data-blocks-navigation'
function blocksNavigation(e: PointerEvent | MouseEvent): boolean {
const { target } = e;
- if (target instanceof HTMLElement) {
+ if (target instanceof Element) {
const closest = target.closest('[data-blocks-navigation]');
if (closest && entityDivRef()?.contains(closest)) return true;
}