diff --git a/pkg/interface/src/views/components/ShipSearch.tsx b/pkg/interface/src/views/components/ShipSearch.tsx index a33b8745bc..8cc350f1b5 100644 --- a/pkg/interface/src/views/components/ShipSearch.tsx +++ b/pkg/interface/src/views/components/ShipSearch.tsx @@ -157,7 +157,7 @@ export function ShipSearch>( setFieldValue(name(), newValue); }; - const error = _.compact(errors[id] as string[]); + const error = _.compact((_.isString(errors[id]) ? [errors[id]] : errors[id] as string[]) as any); const isExact = useCallback((s: string) => { const ship = `~${deSig(s)}`;