Skip to content
This repository was archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
fix: undefined background property (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Donya-qlik authored Nov 7, 2023
1 parent 73d8c1b commit ca91c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/use-load-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const imagePromise = (url) =>
});

const useLoadImage = (layout) => {
const { url } = layout.style.background;
const url = layout.style?.background?.url;
usePromise(async () => {
if (url?.qStaticContentUrl?.qUrl) {
await imagePromise(url?.qStaticContentUrl?.qUrl);
Expand Down

0 comments on commit ca91c3c

Please sign in to comment.