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'
1111import { useNotionContext } from '../context'
1212import { cs } from '../utils'
1313import { evalFormula } from './eval-formula'
14+ import { FormulaResult } from 'notion-types'
1415
1516export interface IPropertyProps {
1617 propertyId ?: string
@@ -77,10 +78,10 @@ export const PropertyImpl: React.FC<IPropertyProps> = (props) => {
7778 const renderFormulaValue = React . useMemo (
7879 ( ) =>
7980 function FormulaProperty ( ) {
80- let content : string
81+ let content : FormulaResult | null
8182
8283 try {
83- let content = evalFormula ( schema . formula , {
84+ content = evalFormula ( schema . formula , {
8485 schema : collection ?. schema ,
8586 properties : block ?. properties
8687 } )
You can’t perform that action at this time.
0 commit comments