diff --git a/client/components/fields/editor/base/text.tsx b/client/components/fields/editor/base/text.tsx index c2764b070..bc2eb9144 100644 --- a/client/components/fields/editor/base/text.tsx +++ b/client/components/fields/editor/base/text.tsx @@ -99,10 +99,10 @@ export class EditorFieldText extends React.Component) => void) { - const currentValue = get(this.props.item, this.props.field); + const currentValue = this.props.item[this.props.field]; callback(this.state.suggestions.filter( - (name) => name.toLowerCase().includes(searchString) && name.toLowerCase() !== currentValue + (name) => name.toLowerCase().includes(searchString.toLowerCase()), )); // eslint-disable-next-line no-empty-function