diff --git a/ui/src/boardList.ts b/ui/src/boardList.ts index b851006..75ec2b9 100644 --- a/ui/src/boardList.ts +++ b/ui/src/boardList.ts @@ -88,7 +88,7 @@ export class BoardList { } ) const latestState = pipe(board, - board => board.workspace.latestSnapshot + board => board.workspace.latestState ) const tip = pipe(board, board => board.workspace.tip diff --git a/ui/src/we.ts b/ui/src/we.ts index cad3d54..c21777e 100644 --- a/ui/src/we.ts +++ b/ui/src/we.ts @@ -58,20 +58,20 @@ export const appletServices: AppletServices = { const docStore = new DocumentStore (synStore, documentHash) const workspaces = await toPromise(docStore.allWorkspaces) const workspace = new WorkspaceStore(docStore, Array.from(workspaces.keys())[0]) - const latestSnapshot = await toPromise(workspace.latestSnapshot) + const latestState = await toPromise(workspace.latestState) if (hrlWithContext.context) { - const card = latestSnapshot.cards.find(c=>c.id === hrlWithContext.context) + const card = latestState.cards.find(c=>c.id === hrlWithContext.context) if (card) { return { icon_src: CARD_ICON_SRC, - name: `${latestSnapshot.name}: ${card.props.title}`, + name: `${latestState.name}: ${card.props.title}`, }; } } return { icon_src: BOARD_ICON_SRC, - name: latestSnapshot.name, + name: latestState.name, }; } else { throw new Error("unknown entry type:"+ entryType) @@ -96,7 +96,7 @@ export const appletServices: AppletServices = { } ) const latestState = pipe(workspace, - w => w.latestSnapshot + w => w.latestState ) return latestState })