From 7b4f360a5e681177ec6bebb96ec01557a4e0f095 Mon Sep 17 00:00:00 2001 From: aidenpwnz Date: Thu, 1 Sep 2022 19:30:15 +0200 Subject: [PATCH] FIX: minor issue with abbr --- src/components/widgets/search/search.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/widgets/search/search.jsx b/src/components/widgets/search/search.jsx index ad3b9e47f..5ac41efd0 100644 --- a/src/components/widgets/search/search.jsx +++ b/src/components/widgets/search/search.jsx @@ -55,7 +55,7 @@ export default function Search({ options, classN }) { type="search" autoFocus className={`block ${ - options.customdata.abbr.length > 1 ? "pl-12" : "pl-10" + options.customdata && options.customdata.abbr && options.customdata.abbr.length > 1 ? "pl-12" : "pl-10" } w-full text-sm text-gray-900 bg-gray-50 rounded-full border border-gray-300 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 h-full`} placeholder="Search..." onChange={(s) => setQuery(s.currentTarget.value)}