Skip to content

Commit

Permalink
fix: a try
Browse files Browse the repository at this point in the history
  • Loading branch information
murtuzaalisurti committed Aug 19, 2024
1 parent 9149d0b commit d8868d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Featured.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ for (let [_, item] of list.entries()) {
if (result.success) {
Object.keys(result).forEach((key) => {
const typedKey = key as keyof typeof item & keyof typeof result;
// const typedKey = key as keyof typeof item & keyof typeof result;
item = {
...item,
[typedKey]: result[typedKey],
// @ts-ignore
[key]: result[key],
};
});
list[_] = item;
Expand Down

0 comments on commit d8868d1

Please sign in to comment.