Wait for saved filter persistence before reporting success

This commit is contained in:
2026-09-06 13:38:08 +03:00
parent 65efd981c5
commit 2a9281c9a5
5 changed files with 61 additions and 31 deletions
+3 -2
View File
@@ -14,6 +14,7 @@ export const LeftSidebar = ({onOpenProductSearch} = {}) => {
setActiveTab,
savedFilters,
deleteSavedFilter,
savingCount,
selectedAlimTuru,
setSelectedAlimTuru,
selectedSektorler,
@@ -138,7 +139,7 @@ export const LeftSidebar = ({onOpenProductSearch} = {}) => {
<Bot className="w-4 h-4 text-blue-600" /> Kayıtlı Filtrelerim
</span>
<span className="text-[10px] bg-blue-100 text-blue-800 font-bold px-2 py-0.5 rounded-full">
{savedFilters.length} Bot
{savedFilters.length} filtre
</span>
</div>
@@ -161,7 +162,7 @@ export const LeftSidebar = ({onOpenProductSearch} = {}) => {
</p>
</div>
<button
onClick={() => deleteSavedFilter(filter.id)}
disabled={savingCount > 0} aria-label={`${filter.name} filtresini sil`} onClick={() => deleteSavedFilter(filter.id)}
title="Filtreyi Sil"
className="text-slate-400 hover:text-red-600 p-1 opacity-60 group-hover:opacity-100 transition-opacity"
>