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

fix: Fixes error in ChatList component #8266

Merged
merged 3 commits into from Nov 1, 2023
Merged

Conversation

nithindavid
Copy link
Contributor

@nithindavid nithindavid commented Oct 31, 2023

Description

image

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality not to work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented on my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

netlify bot commented Oct 31, 2023

Deploy Preview for chatwoot-storybook ready!

Name Link
🔨 Latest commit 56ba1fe
🔍 Latest deploy log https://app.netlify.com/sites/chatwoot-storybook/deploys/6542835b6bead7000940eff7
😎 Deploy Preview https://deploy-preview-8266--chatwoot-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -410,8 +410,10 @@ export default {
},
conversationListPagination() {
const conversationsPerPage = 25;
const hasChatsOnView =
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@iamsivin Can you check if this is the same since arrays cannot be explicitly compared this.chatsOnView !== []

Copy link
Member

Choose a reason for hiding this comment

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

@nithindavid This change will introduce the same bug there was before. https://linear.app/chatwoot/issue/CW-1424/pagination-not-working-properly

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
@nithindavid nithindavid merged commit 3c7854c into develop Nov 1, 2023
19 checks passed
@nithindavid nithindavid deleted the fix/error-chatlist branch November 1, 2023 21:53
Copy link

github-actions bot commented Dec 1, 2023

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants