fix: build errors
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useState } from 'react';
|
||||
import AnimateHeight from 'react-animate-height';
|
||||
import { fieldAffectsData } from '../../../../fields/config/types';
|
||||
import { FieldAffectingData, fieldAffectsData } from '../../../../fields/config/types';
|
||||
import SearchFilter from '../SearchFilter';
|
||||
import ColumnSelector from '../ColumnSelector';
|
||||
import WhereBuilder from '../WhereBuilder';
|
||||
@@ -48,7 +48,7 @@ const ListControls: React.FC<Props> = (props) => {
|
||||
fieldName={titleField && fieldAffectsData(titleField) ? titleField.name : undefined}
|
||||
handleChange={handleWhereChange}
|
||||
modifySearchQuery={modifySearchQuery}
|
||||
fieldLabel={titleField && titleField.label ? titleField.label : undefined}
|
||||
fieldLabel={titleField && fieldAffectsData(titleField) && titleField.label ? titleField.label : undefined}
|
||||
listSearchableFields={textFieldsToBeSearched}
|
||||
/>
|
||||
<div className={`${baseClass}__buttons`}>
|
||||
|
||||
@@ -20,7 +20,7 @@ const RenderFields: React.FC<Props> = (props) => {
|
||||
readOnly: readOnlyOverride,
|
||||
className,
|
||||
forceRender,
|
||||
indexPath: incomingIndexPath
|
||||
indexPath: incomingIndexPath,
|
||||
} = props;
|
||||
|
||||
const [hasRendered, setHasRendered] = useState(Boolean(forceRender));
|
||||
@@ -107,11 +107,7 @@ const RenderFields: React.FC<Props> = (props) => {
|
||||
className="missing-field"
|
||||
key={fieldIndex}
|
||||
>
|
||||
No matched field found for
|
||||
{' '}
|
||||
"
|
||||
{field.label}
|
||||
"
|
||||
{`No matched field found for "${field.label}"`}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user