tuyetnhi 1 rok pred
rodič
commit
2fb19f1a33

+ 1 - 1
src/components/common/AutoCompleteSearch.tsx

@@ -18,7 +18,7 @@ export default function AutoCompleteSearch({
   return (
     <div className={cx("complete_box", !show ? "hidden" : "")}>
       <div className={cx("complete_list")}>
-        {data.map((item, index) => {
+        {data?.map((item, index) => {
           return (
             <div className={cx("complete_item")} key={index} onClick={() => onClick(item)}>
               <span className={cx("complete_text")}>{item}</span>