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: Always return sorted index array to make sure a json array is the result #4493

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

juliusknorr
Copy link
Member

@juliusknorr juliusknorr commented Mar 1, 2023

This has been lost in https://github.com/nextcloud/deck/pull/4452/files#diff-4975b048acd756b9fe8e6d63b016021d70ade5c1f79a5797ebe4dc6f2e87d34fL182 but the place was not that obvious. We need to use the array_values of the array_unique result to make sure that indexes are still properly in line and the later conversion to JSON results in an array not an object.

…e result

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
Copy link
Member Author

Will see if we can have a test case for this in a follow up PR.

Copy link
Member

@marcelklehr marcelklehr left a comment

Choose a reason for hiding this comment

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

Makes sense.

@marcelklehr marcelklehr merged commit 8fb7bb8 into main Mar 1, 2023
@marcelklehr marcelklehr deleted the bugfix/noid/duplicate-boards branch March 1, 2023 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants