Skip to content

Commit

Permalink
JS-6153: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ra3orblade committed Jan 12, 2025
1 parent 33d148d commit 107c5fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions src/ts/component/menu/syncStatus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ const MenuSyncStatus = observer(class MenuSyncStatus extends React.Component<I.M
const rowRenderer = ({ index, key, style, parent }) => {
const item = items[index];

console.log(item);

let content = null;
if (item.isSection) {
content = (
Expand Down
4 changes: 3 additions & 1 deletion src/ts/component/page/main/relation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const PageMainRelation = observer(class PageMainRelation extends React.Component
return;
};

const object = S.Detail.get(rootId, rootId, []);
const object = S.Detail.get(rootId, rootId);
if (object.isDeleted) {
this.setState({ isDeleted: true, isLoading: false });
return;
Expand All @@ -153,6 +153,8 @@ const PageMainRelation = observer(class PageMainRelation extends React.Component
this.refHeader?.forceUpdate();
this.refHead?.forceUpdate();
this.setState({ isLoading: false });

analytics.event('ScreenRelation', { relationKey: object.relationKey });
});
};

Expand Down
6 changes: 0 additions & 6 deletions src/ts/lib/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,11 +252,6 @@ class Analytics {
break;
};

case 'ScreenRelation': {
data.relationKey = data.params.id;
break;
};

case 'ObjectInstall':
case 'ObjectUninstall':
case 'SelectGraphNode':
Expand Down Expand Up @@ -591,7 +586,6 @@ class Analytics {
'main/graph': 'ScreenGraph',
'main/navigation': 'ScreenNavigation',
'main/type': 'ScreenType',
'main/relation': 'ScreenRelation',
'main/media': 'ScreenMedia',
'main/history': 'ScreenHistory',
'main/date': 'ScreenDate',
Expand Down

0 comments on commit 107c5fa

Please sign in to comment.