mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-04-26 06:15:52 +03:00
[PR #799] [MERGED] fix: ensure emailForwardingList is always initialized #771
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cloudflare_temp_email#771
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dreamhunter2333/cloudflare_temp_email/pull/799
Author: @dreamhunter2333
Created: 12/30/2025
Status: ✅ Merged
Merged: 12/30/2025
Merged by: @dreamhunter2333
Base:
main← Head:feature/email📝 Commits (1)
1741dfffix: ensure emailForwardingList is always initialized📊 Changes
1 file changed (+3 additions, -3 deletions)
View changed files
📝
frontend/src/views/admin/AccountSettings.vue(+3 -3)📄 Description
User description
Summary
Problem
When backend returns
emailRuleSettingswithoutemailForwardingListfield, the frontend would getundefinedinstead of an empty array, causing a SyntaxError when clicking the "Add" button in email forwarding configuration.Solution
Use optional chaining to safely access and initialize both fields of emailRuleSettings:
Test Plan
🤖 Generated with Claude Code
PR Type
Bug fix
Description
Fix initialization of
emailRuleSettingsto prevent errors.Ensure
emailForwardingListis always an array.Use optional chaining for safer field access.
Prevent SyntaxError when adding email forwarding rules.
Changes walkthrough 📝
AccountSettings.vue
Fix and enhance emailRuleSettings initialization logicfrontend/src/views/admin/AccountSettings.vue
emailRuleSettingsinitialization logic.emailForwardingListdefaults to an empty array.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.