Skip to content

Commit 9db4d89

Browse files
committed
fix(thumbnail): remove useless console log
1 parent 45fec50 commit 9db4d89

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
12+
- Thumbnail: remove undesired console log.
13+
1014
## [3.5.1][] - 2023-08-02
1115

1216
### Changed
@@ -1793,7 +1797,5 @@ _Failed released_
17931797
[3.4.0]: https://github.com/lumapps/design-system/tree/v3.4.0
17941798
[unreleased]: https://github.com/lumapps/design-system/compare/v3.5.0...HEAD
17951799
[3.5.0]: https://github.com/lumapps/design-system/tree/v3.5.0
1796-
1797-
1798-
[Unreleased]: https://github.com/lumapps/design-system/compare/v3.5.1...HEAD
1799-
[3.5.1]: https://github.com/lumapps/design-system/tree/v3.5.1
1800+
[unreleased]: https://github.com/lumapps/design-system/compare/v3.5.1...HEAD
1801+
[3.5.1]: https://github.com/lumapps/design-system/tree/v3.5.1

packages/lumx-react/src/components/thumbnail/useImageLoad.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export type LoadingState = 'isLoading' | 'isLoaded' | 'hasError';
55
function getState(img: HTMLImageElement | null | undefined, event?: Event) {
66
// Error event occurred or image has no source.
77
if (event?.type === 'error' || (img?.complete && !img.getAttribute('src'))) {
8-
console.log('HAS ERROR');
98
return 'hasError';
109
}
1110
// Image is undefined or incomplete.

0 commit comments

Comments
 (0)