bugfixing

This commit is contained in:
MuslemRahimi 2024-12-17 23:25:27 +01:00
parent 075049112e
commit 37d9b3512b
3 changed files with 5 additions and 3 deletions

View File

@ -884,7 +884,7 @@
<div class="flex w-full"> <div class="flex w-full">
<div class="hidden xl:block xl:w-1/6"> <div class="hidden xl:block xl:w-1/6">
<aside <aside
class="fixed overflow-y-scroll scroller overflow-hidden inset-y-0 left-0 z-50 xl:flex w-64 flex-col xl:border-r xl:border-gray-800 bg-[#141417]" class="fixed overflow-y-auto scroller overflow-hidden inset-y-0 left-0 z-50 xl:flex w-64 flex-col xl:border-r xl:border-gray-800 bg-[#141417]"
> >
<nav <nav
class="flex flex-col items-center mr-auto gap-y-4 xl:py-5 w-full" class="flex flex-col items-center mr-auto gap-y-4 xl:py-5 w-full"

View File

@ -1380,7 +1380,7 @@
}); });
// Update ruleCondition and valueMappings based on existing rules // Update ruleCondition and valueMappings based on existing rules
ruleOfList.forEach((rule) => { ruleOfList?.forEach((rule) => {
ruleCondition[rule.name] = ruleCondition[rule.name] =
rule.condition || allRules[rule.name].defaultCondition; rule.condition || allRules[rule.name].defaultCondition;
valueMappings[rule.name] = rule.value || allRules[rule.name].defaultValue; valueMappings[rule.name] = rule.value || allRules[rule.name].defaultValue;

View File

@ -214,11 +214,13 @@ onmessage = async (event: MessageEvent) => {
const { stockScreenerData, ruleOfList } = event.data || {}; const { stockScreenerData, ruleOfList } = event.data || {};
try { try {
const filteredData = await filterStockScreenerData( let filteredData = await filterStockScreenerData(
stockScreenerData, stockScreenerData,
ruleOfList ruleOfList
); );
filteredData = filteredData?.sort((a,b) => b?.marketCap - a?.marketCap);
postMessage({ postMessage({
message: "success", message: "success",
filteredData, filteredData,