You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm on "Guillim' Board" but "Charles' Board" is selected in the navigation bar (because it's the first item)
Expected behavior
The right view should be selected
Technical inputs
I believe this is because of the case in url being not consistent with what is expected by the navbar: the navbar is expecting a slugified kebab-case version. We should just use the objectMetadata.name everywhere without reworking it (probalby remove any slugify logic)
For this example: https://twenty-eng.twenty.com/objects/projectItems?view=c8a7455d-0f90-4596-a594-6c5b4850a3b0
The text was updated successfully, but these errors were encountered:
…9394)
# Introduction
Please find related ticket here #9382
To fix the issue the solution seems to be to stop searching for last
viewed `objectMetadata` using their slugged version `namePlural`
## Upcoming cleanup
After discussing with @charlesBochet it seems like a bad practice to
slug the `objectMetadata`, in this way in a following PR we will suggest
a cleanup of the remaining method that does within the
`useFilteredObjectMetadataItems.ts`
## Conclusion
As always any suggestions are welcomed !
Please let me know
closes#9382
---------
Co-authored-by: Paul Rastoin <[email protected]>
Bug Description
See here:
I'm on "Guillim' Board" but "Charles' Board" is selected in the navigation bar (because it's the first item)
Expected behavior
The right view should be selected
Technical inputs
I believe this is because of the case in url being not consistent with what is expected by the navbar: the navbar is expecting a slugified kebab-case version. We should just use the objectMetadata.name everywhere without reworking it (probalby remove any slugify logic)
For this example: https://twenty-eng.twenty.com/objects/projectItems?view=c8a7455d-0f90-4596-a594-6c5b4850a3b0
The text was updated successfully, but these errors were encountered: