Skip to content

Commit ce3c607

Browse files
committed
fix: hide floatbar on missing min max
1 parent ff0c72c commit ce3c607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/components/inventory/selected_item_info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export class SelectedItemInfo extends FloatElement {
156156
}
157157

158158
renderFloatBar(): TemplateResult<1> {
159-
if (!this.itemInfo || !this.itemInfo.floatvalue) {
159+
if (!this.itemInfo || !this.itemInfo.floatvalue || this.itemInfo.min === undefined || this.itemInfo.max === undefined) {
160160
return html``;
161161
}
162162

0 commit comments

Comments
 (0)