@operato/board 1.4.69 → 1.4.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@operato/board",
3
- "version": "1.4.69",
3
+ "version": "1.4.71",
4
4
  "description": "Webcomponent for board following open-wc recommendations",
5
5
  "author": "heartyoh",
6
6
  "main": "dist/src/index.js",
@@ -148,5 +148,5 @@
148
148
  "prettier --write"
149
149
  ]
150
150
  },
151
- "gitHead": "00155b769ab1ef72162f36a58695b4220218d898"
151
+ "gitHead": "b33419d8c667b6457f2a93424afe2845faa63350"
152
152
  }
@@ -89,7 +89,7 @@ export async function fetchPlayGroup(groupId: string) {
89
89
  export async function fetchPlayGroupByName(name: string) {
90
90
  const response = await client.query({
91
91
  query: gql`
92
- query FetchPlayGroup($id: String!) {
92
+ query FetchPlayGroupByName($name: String!) {
93
93
  playGroupByName(name: $name) {
94
94
  id
95
95
  }
@@ -349,7 +349,7 @@ export class BoardViewer extends LitElement {
349
349
  const id = (await fetchPlayGroupByName(playGroupName))?.id
350
350
  const queryString = bindingData ? new URLSearchParams(bindingData).toString() : ''
351
351
 
352
- history.pushState({}, '', `board-player?${queryString}`)
352
+ history.pushState({}, '', `board-player/${id}?${queryString}`)
353
353
  window.dispatchEvent(new Event('popstate'))
354
354
  }
355
355