Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

fix: bug 2356 #1404

Merged
merged 2 commits into from
Dec 5, 2019
Merged

fix: bug 2356 #1404

merged 2 commits into from
Dec 5, 2019

Conversation

LarsLiden
Copy link
Member

update train dialog validity flags on replay from train dialog list view

update train dialog validity flags on replay from train dialog list view
@LarsLiden LarsLiden merged commit b0904b7 into master Dec 5, 2019
@mattmazzola
Copy link
Member

🎉 This PR is included in version 0.413.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

@@ -1071,6 +1071,21 @@ class TrainDialogs extends React.Component<Props, ComponentState> {
this.props.trainDialogReplayThunkAsync as any,
)

// Get new activities to check for errors or warnings
const teachWithActivities = ((await this.props.fetchActivitiesThunkAsync(this.props.app.appId, newTrainDialog, this.props.user.name, this.props.user.id) as any) as Promise<CLM.TeachWithActivities>)
const replayError = DialogUtils.getMostSevereReplayError((await teachWithActivities).activities)
Copy link
Member

Choose a reason for hiding this comment

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

It looks like you have incorrect await statement due to wrong types above. Either way two awaits is weird and wouldn't recommend this syntax in inline awaits

Copy link
Member Author

Choose a reason for hiding this comment

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

Ugh.. Sloppy coding. thx

Copy link
Member Author

Choose a reason for hiding this comment

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

Wow. It's vscode that stuck that in. I typed "a", TAB for auto-complete, and....

vccode

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants