Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html

## Unreleased

### Bugfixes

- When `Image` component is editable, the value error will be set if there is no image available, which means the error component (default or custom) wis displayed correctly.

## 2.7.0 ( January 20, 2022 )

### New features
Expand Down
2 changes: 1 addition & 1 deletion src/components/image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function Image({

const { value, thing, error: thingError } = values;
let valueError;
if (!edit && !value) {
if (!value) {
valueError = new Error("No value found for property.");
}
const isFetchingThing = !thing && !thingError;
Expand Down