Skip to content

Commit

Permalink
Merge pull request #62 from holochain/fix-hc-versions-ordering
Browse files Browse the repository at this point in the history
fixed holochain version ordering in installed apps list
  • Loading branch information
guillemcordoba authored Aug 24, 2022
2 parents 0153fdd + 3037822 commit b6439a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ export const store = createStore<LauncherAdminState>({

const versions: Array<HolochainId> = Object.keys(
stateInfo.state.content.content.versions
).map((v) => ({
type: "HolochainVersion",
content: v,
}));
)
.sort((a, b) => b.localeCompare(a))
.map((v) => ({
type: "HolochainVersion",
content: v,
}));
if (
stateInfo.state.content.content.custom_binary &&
stateInfo.state.content.content.custom_binary.type === "Running"
Expand Down

0 comments on commit b6439a5

Please sign in to comment.