fixed some values for pageFilterControl, SelectModal

This commit is contained in:
Victor committed 2024-02-05 22:21:38 -08:00
1 parent a95124b094
commit f26cec2ec8
3 files changed
+4 -4

No files matched your search

@@ -45,7 +45,7 @@ const SelectModal = memo(
const [weightType, setWeightType] = useState(
tabs[0].weightTypeFilter || "all"
);
console.log("🔫", tabs, activeTab, weightType);
// Update mediaType when activeTab changes
useEffect(() => {
const currentTab = tabs.find(tab => tab.tabKey === activeTab);
@@ -81,7 +81,7 @@ export default function SelectWeightsList({
key,
}}
>
<WeightsCards {...{ type: data.weights_type, props }} />
<WeightsCards {...{ type: data.weight_category, props }} />
</div>
);
})}
@@ -163,14 +163,14 @@ export default function PageFilterControls({
{
label: "All Weights",
tabKey: "allWeights",
weightTypeFilter: "sdxl",
weightTypeFilter: "sd_1.5",
searcher: true,
type: "weights",
},
{
label: "Bookmarked",
tabKey: "bookmarkedWeights",
weightTypeFilter: "sdxl",
weightTypeFilter: "sd_1.5",
searcher: false,
type: "weights",
},