Skip to content

Commit

Permalink
fix: values().map is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Dec 12, 2024
1 parent 96b8929 commit 74ba483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/renderer/src/hooks/biz/useFeedActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export const useFeedActions = ({
disabled: isInbox,
supportMultipleSelection: true,
submenu: [
...categories.values().map((category) => {
...Array.from(categories.values()).map((category) => {
const isIncluded = isMultipleSelection
? subscriptions.every((s) => s.category === category)
: subscription?.category === category
Expand Down
2 changes: 1 addition & 1 deletion forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ async function cleanSources(buildPath, electronVersion, platform, arch, callback

// copy needed node_modules to be included in the app
await Promise.all(
keepModules.values().map((item) => {
Array.from(keepModules.values()).map((item) => {
// Check is exist
if (fs.existsSync(path.join(buildPath, "node_modules", item))) {
// eslint-disable-next-line array-callback-return
Expand Down

0 comments on commit 74ba483

Please sign in to comment.