Skip to content

Commit

Permalink
Fix stat requirement properties not rendering correctly when loaded f…
Browse files Browse the repository at this point in the history
…rom stash
  • Loading branch information
crunchyintheory committed Nov 25, 2024
1 parent cd82edc commit 537876c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/item-editor/item-editor.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<br/>
<br/>
<span class="imageselect">
<label for="image">Image:</label>
<label for="image">Image URL:</label>
<input type="text" class="Image" id="image" [(ngModel)]="item.image" />
<button (click)="removeImage()"
style="position: relative; display: inline-flex"
Expand Down
2 changes: 1 addition & 1 deletion src/app/value.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class ValuePipe implements PipeTransform {
];

transform(value: any, args?: any): any {
if(value.type === PropertyType.StatReq) {
if(value.type.className === PropertyType.StatReq.className) {
return value.value.replace(/(\d+)/g, '<span class="prop-white">$1</span>');
}
else {
Expand Down

0 comments on commit 537876c

Please sign in to comment.