Skip to content

Commit ac4e8a4

Browse files
authored
fix: Add initial page state for getPage helper. (#137)
1 parent 35f2043 commit ac4e8a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/composables/useDrupalCe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const useDrupalCe = () => {
9292
/**
9393
* Use page data
9494
*/
95-
const getPage = () => useState('drupal-ce-page-data')
95+
const getPage = () => useState('drupal-ce-page-data', () => ({}))
9696

9797
/**
9898
* Render elements from page data returned from fetchPage

0 commit comments

Comments
 (0)