diff options
| author | Tyler Ferrari <69283684+Sowgro@users.noreply.github.com> | 2025-04-07 12:09:49 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-07 12:09:49 -0400 | 
| commit | b6bc0e5e9be234c58ad5d8554f6614d22e2738f8 (patch) | |
| tree | 0dc5c7541a6c9d02bcf453d7dc98d9d2056e2663 /ufund-ui | |
| parent | 04cb51b2e7891785c956c5faa73fb88cc04e82e0 (diff) | |
| download | JellySolutions-b6bc0e5e9be234c58ad5d8554f6614d22e2738f8.tar.gz JellySolutions-b6bc0e5e9be234c58ad5d8554f6614d22e2738f8.tar.bz2 JellySolutions-b6bc0e5e9be234c58ad5d8554f6614d22e2738f8.zip | |
Fix update need bug
The current would reset to 0
Diffstat (limited to 'ufund-ui')
| -rw-r--r-- | ufund-ui/src/app/components/need-edit/need-edit.component.ts | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/ufund-ui/src/app/components/need-edit/need-edit.component.ts b/ufund-ui/src/app/components/need-edit/need-edit.component.ts index abfa543..b63d9c1 100644 --- a/ufund-ui/src/app/components/need-edit/need-edit.component.ts +++ b/ufund-ui/src/app/components/need-edit/need-edit.component.ts @@ -53,6 +53,7 @@ export class NeedEditComponent implements OnChanges {      }      updateNeed(need: Need) { +        need.current = this.need?.current ?? 0          this.cupboardService.updateNeed(need.id, need)              .pipe(catchError((ex, _) => {                  if (ex.status == 500) { | 
