-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Board: 1265: Make Card Actions extensible #1319
Conversation
Signed-off-by: Anna No <anna.no@xored.com>
} | ||
] | ||
export const getCardActions = async (client: Client) => { | ||
return await client.findAll(board.class.CardAction, {}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you need this? You can use it directy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
let actionGroups: { label: IntlString; actions: CardAction[] }[] = [] | ||
|
||
getCardActions(client).then((result) => { | ||
result.forEach(async (action) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will not work, because .forEach doesn't await inner func. You should use for of
or any another loop and await all promises. Currently sort may work incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix this getCardActions(client).then((result) => { result.forEach(async (action) => {
Signed-off-by: Anna No <anna.no@xored.com>
Signed-off-by: Anna No <anna.no@xored.com> Signed-off-by: budaeva <irina.budaeva@xored.com>
No description provided.