Skip to content

Commit

Permalink
more types
Browse files Browse the repository at this point in the history
  • Loading branch information
EDsCODE committed Mar 8, 2024
1 parent 97a2742 commit 98d2958
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/src/models/personPropertiesModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { dataWarehouseJoinsLogic } from 'scenes/data-warehouse/external/dataWare
import { teamLogic } from 'scenes/teamLogic'

import { updateListOfPropertyDefinitions } from '~/models/propertyDefinitionsModel'
import { PersonProperty } from '~/types'
import { PersonProperty, PropertyDefinition } from '~/types'

import type { personPropertiesModelType } from './personPropertiesModelType'
import { PersonPropertiesModelProps } from './types'
Expand Down Expand Up @@ -48,7 +48,10 @@ export const personPropertiesModel = kea<personPropertiesModelType>([
})),
listeners(() => ({
loadPersonPropertiesSuccess: ({ personProperties }) => {
updateListOfPropertyDefinitions(personProperties, TaxonomicFilterGroupType.PersonProperties)
updateListOfPropertyDefinitions(
personProperties as PropertyDefinition[],
TaxonomicFilterGroupType.PersonProperties
)
},
})),
selectors(() => ({
Expand Down

0 comments on commit 98d2958

Please sign in to comment.