Skip to content

Commit

Permalink
Merge branch 'master-lts' into BLT-1345-botonic-to-use-flow-builder-e…
Browse files Browse the repository at this point in the history
…ndpoints-in-hubtype-backend
  • Loading branch information
vanbasten17 committed Jan 29, 2025
2 parents 5230ae6 + cd78844 commit 0a37e4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/botonic-plugin-flow-builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botonic/plugin-flow-builder",
"version": "0.31.0",
"version": "0.31.1",
"main": "./lib/cjs/index.js",
"module": "./lib/esm/index.js",
"description": "Use Flow Builder to show your contents",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export function useWebviewContents<T extends MapContentsType>({
{} as Record<keyof T, string>
)
const [currentLocale, setCurrentLocale] = useState(locale)
const [isLoading, setLoading] = useState(true)
const [error, setError] = useState(false)

const updateCurrentLocale = (textContents?: WebviewTextContent[]) => {
Expand Down Expand Up @@ -104,15 +103,13 @@ export function useWebviewContents<T extends MapContentsType>({
} catch (error) {
console.error('Error fetching webview contents:', error)
setError(true)
} finally {
setLoading(false)
}
}
getResponseContents()
}, [])

return {
isLoading,
isLoading: Object.keys(contents).length === 0,
error,
webviewContentsContext: {
getTextContent,
Expand Down

0 comments on commit 0a37e4a

Please sign in to comment.