Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add key property to dashboard messages and fix misc errors for emails with empty from array #8489

Merged
merged 1 commit into from
Aug 4, 2023

Conversation

IchbinkeinReh
Copy link
Collaborator

@IchbinkeinReh IchbinkeinReh commented May 22, 2023

fixes #4580
this is because DashboardWidget uses field id as key for the v-for and the messages do not have an id field (see https://github.com/nextcloud/nextcloud-vue/blob/master/src/components/NcDashboardWidget/NcDashboardWidget.vue#L190 )

@IchbinkeinReh IchbinkeinReh changed the title fix #4580 by adding key property to dashboard messages and fix misc errors for emails with empty from array Add key property to dashboard messages and fix misc errors for emails with empty from array May 22, 2023
@IchbinkeinReh
Copy link
Collaborator Author

@ChristophWurst sry for asking. Do i have to do anything to get this PR reviewed or did you have no time yet to review the PR?

@@ -128,6 +128,7 @@ export default {

await Promise.all(inboxes.map(async (mailbox) => {
const messages = await fetchEnvelopes(mailbox.accountId, mailbox.databaseId, this.query, undefined, 10)
messages.forEach(message => { message.id = message.databaseId })
Copy link
Member

@ChristophWurst ChristophWurst Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't comprehend why this is necessary. Could you elaborate? nvm it's in #8489 (comment)

…ix misc errors for emails with empty from array

Signed-off-by: Patrick Bender <[email protected]>
@ChristophWurst ChristophWurst merged commit 976919a into nextcloud:main Aug 4, 2023
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong avatars on the widget "Wichtige E-Mail"
2 participants