fix meta-merging logic

oops :(
This commit is contained in:
Seth Trowbridge 2023-05-14 09:05:19 -04:00
parent 35bd15ed6e
commit 7b0d713906
2 changed files with 7 additions and 5 deletions

View File

@ -7,6 +7,7 @@
"@eno/iso": "http://localhost:4507/lib/iso.tsx"
},
"tasks": {
"dev": "deno run -A --unstable --reload=http://localhost:4507/ --no-lock app.tsx --dev"
"dev": "deno run -A --unstable --reload=http://localhost:4507/ --no-lock app.tsx --dev",
"run": "deno run -A --unstable --reload=http://localhost:4507/ --no-lock app.tsx"
}
}

View File

@ -48,13 +48,14 @@ export const Meta =
const lookup = key as MetaKeys
const valPrev = final[lookup];
const valCurr = curr[lookup];
if(valPrev && valCurr && curr.concatListed)
if(valPrev && !valCurr)
{
final[lookup] = valPrev + curr.concatListed + valCurr;
final[lookup] = curr.dropUnlisted ? "" : valPrev;
}
else if(!valCurr && curr.dropUnlisted)
else if(valPrev && valCurr)
{
final[lookup] = "";
final[lookup] = curr.concatListed ? valPrev + curr.concatListed + valCurr : valCurr
}
else
{