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

Blank Kanban View after creation #6028

Open
Us3r-gitHub opened this issue Jun 25, 2024 · 2 comments
Open

Blank Kanban View after creation #6028

Us3r-gitHub opened this issue Jun 25, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@Us3r-gitHub
Copy link
Contributor

Scope & Context

Create a Kanban view again after deleting select

Bug Description

Steps to Reproduce:

  1. Follow reproduce on issue View becomes blank after deleting select #6027
  2. Create new Kanban View with new Select
  3. After creation, Kanban View becomes blank

Technical inputs

  • After research, its occured due incorrect id is being used

Suggested Solution:
Add conditional check, if current id is still exist on list

@Us3r-gitHub Us3r-gitHub added the type: bug Something isn't working label Jun 25, 2024
Copy link

greptile-apps bot commented Jun 25, 2024

To resolve the blank Kanban view issue after creation, follow these steps:

  1. Open frontend/src/components/views/KanbanView.js.
  2. Locate the function responsible for rendering the Kanban view, likely renderKanbanView.
  3. Add a conditional check to verify if the current ID exists in the list of IDs before proceeding with the rendering logic. For example:
if (!idList.includes(currentId)) {
  // Handle the case where the ID does not exist
  return <div>Invalid Kanban View ID</div>;
}
  1. Ensure that the ID list is correctly populated and passed to the component. This may involve checking the data fetching logic in frontend/src/hooks/useKanbanData.js.

  2. Save the changes and ensure the Kanban view renders correctly with valid IDs.

References

Edit Issue Bot Settings

@Us3r-gitHub
Copy link
Contributor Author

At Select UI Component
Currently, there is a mechanism to set the label with the first data item.
Can we also implement this for setting the value too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant