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

fix: undefined background property #443

Merged
merged 2 commits into from
Nov 7, 2023
Merged

Conversation

Donya-qlik
Copy link
Contributor

@Donya-qlik Donya-qlik commented Nov 7, 2023

It fixes the console type error of:

image

@Donya-qlik Donya-qlik marked this pull request as ready for review November 7, 2023 10:33
@Donya-qlik Donya-qlik requested a review from a team as a code owner November 7, 2023 10:33
@@ -11,7 +11,7 @@ const imagePromise = (url) =>
});

const useLoadImage = (layout) => {
const { url } = layout.style.background;
const url = layout.style?.background?.url ?? undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need to do ?? undefined, but maybe you are getting a lint error?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, no I don't get lint error, removed it.

@Donya-qlik Donya-qlik requested a review from cbt1 November 7, 2023 12:02
@Donya-qlik Donya-qlik merged commit ca91c3c into master Nov 7, 2023
5 checks passed
@Donya-qlik Donya-qlik deleted the dmh/load-img-bkg-error branch November 7, 2023 12:08
qlikossbuild pushed a commit that referenced this pull request Nov 22, 2023
# [1.38.0](v1.37.1...v1.38.0) (2023-11-22)

### Bug Fixes

* adding noopener to url link ([#446](#446)) ([829cde1](829cde1))
* undefined background property ([#443](#443)) ([ca91c3c](ca91c3c))

### Features

* extend gotoSheet navigation by adding chartId option ([#439](#439)) ([29e7c43](29e7c43))
* rename navigationCall parameter for chartId ([#445](#445)) ([4b3457f](4b3457f))
@qlikossbuild
Copy link

🎉 This PR is included in version 1.38.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants