Skip to content

Commit 4cec04c

Browse files
authored
Update useRoamStore to use updatePage instead of updateBlock (#311)
* Update useRoamStore to use updatePage instead of updateBlock * . * 1.36.1
1 parent 241ab3d commit 4cec04c

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "query-builder",
3-
"version": "1.36.0",
3+
"version": "1.36.1",
44
"description": "Introduces new user interfaces for building queries in Roam",
55
"main": "./build/main.js",
66
"author": {

src/components/tldraw/useRoamStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ export const useRoamStore = ({
8383
const newstateId = nanoid();
8484
localStateIds.current.push(newstateId);
8585
localStateIds.current.splice(0, localStateIds.current.length - 25);
86-
window.roamAlphaAPI.updateBlock({
87-
block: {
86+
window.roamAlphaAPI.updatePage({
87+
page: {
8888
uid: pageUid,
8989
props: {
9090
...props,

0 commit comments

Comments
 (0)