Fix expand() on passage cards

This commit is contained in:
Jeremy Wall 2020-08-30 16:15:36 -04:00
parent 2ddbc4e7b6
commit ed2e65fb8a
2 changed files with 16 additions and 1 deletions

15
src/.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}/src/"
}
]
}

View File

@ -361,7 +361,7 @@ export class AppService extends createStateService(reducer, initialState) {
async updatePassage(oldCard: CardItem, ref: BibleReference) {
const newCard = await this.composeBiblePassageCardItem(ref);
this.dispatch(AppActionFactory.newUpdateCard(oldCard, newCard));
this.dispatch(AppActionFactory.newUpdateCard(newCard, oldCard));
}
private async composeBiblePassageCardItem(ref: BibleReference) {