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 @@ -10,6 +10,7 @@ import { Text } from '../components/text'
10
10
import { PageTitle } from '../components/page-title'
11
11
import { GracefulImage } from '../components/graceful-image'
12
12
import { evalFormula } from './eval-formula'
13
+ import { FormulaResult } from 'notion-types'
13
14
14
15
export interface IPropertyProps {
15
16
propertyId ?: string
@@ -76,10 +77,10 @@ export const PropertyImpl: React.FC<IPropertyProps> = (props) => {
76
77
const renderFormulaValue = React . useMemo (
77
78
( ) =>
78
79
function FormulaProperty ( ) {
79
- let content : string
80
+ let content : FormulaResult | null
80
81
81
82
try {
82
- let content = evalFormula ( schema . formula , {
83
+ content = evalFormula ( schema . formula , {
83
84
schema : collection ?. schema ,
84
85
properties : block ?. properties
85
86
} )
You can’t perform that action at this time.
0 commit comments