Skip to content

Commit

Permalink
Fix up logics
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Oct 26, 2023
1 parent 84d19be commit d1c0543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 144 deletions.
6 changes: 2 additions & 4 deletions frontend/src/scenes/annotations/annotationModalLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { FEATURE_FLAGS } from 'lib/constants'
import { userLogic } from 'scenes/userLogic'
import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { urlToAction } from 'kea-router'
import { urls } from 'scenes/urls'

export const ANNOTATION_DAYJS_FORMAT = 'MMMM DD, YYYY h:mm A'

Expand Down Expand Up @@ -173,7 +174,7 @@ export const annotationModalLogic = kea<annotationModalLogicType>([
},
})),
urlToAction(({ values, actions, cache }) => ({
'/annotations/:id': ({ id }) => {
[urls.annotation(':id')]: ({ id }) => {
cache.annotationToShowId = parseInt(id as string)
const annotation = values.annotations.find((a) => a.id === cache.annotationToShowId)
if (!annotation) {
Expand All @@ -182,7 +183,4 @@ export const annotationModalLogic = kea<annotationModalLogicType>([
actions.openModalToEditAnnotation(annotation)
},
})),
// actionToUrl(() => ({
// closeModal: () => (sceneLogic.values.scene === Scene.Annotations ? urls.annotations() : undefined),
// })),
])
140 changes: 0 additions & 140 deletions frontend/src/scenes/data-management/DataManagementPageTabs.tsx

This file was deleted.

0 comments on commit d1c0543

Please sign in to comment.