File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/react-notion-x/src/third-party Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { Text } from '../components/text'
11
11
import { useNotionContext } from '../context'
12
12
import { cs } from '../utils'
13
13
import { evalFormula } from './eval-formula'
14
+ import { FormulaResult } from 'notion-types'
14
15
15
16
export interface IPropertyProps {
16
17
propertyId ?: string
@@ -77,10 +78,10 @@ export const PropertyImpl: React.FC<IPropertyProps> = (props) => {
77
78
const renderFormulaValue = React . useMemo (
78
79
( ) =>
79
80
function FormulaProperty ( ) {
80
- let content : string
81
+ let content : FormulaResult | null
81
82
82
83
try {
83
- let content = evalFormula ( schema . formula , {
84
+ content = evalFormula ( schema . formula , {
84
85
schema : collection ?. schema ,
85
86
properties : block ?. properties
86
87
} )
You can’t perform that action at this time.
0 commit comments