Skip to content

Commit 8e09c21

Browse files
authored
Merge pull request #47 from darinalleman/10-show-unsaved-warning-create-pack-fix
Remove "unsaved changes" popup when creating a pack
2 parents 8bec853 + f4b8f74 commit 8e09c21

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

frontend/src/app/PackForm/PackForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ const PackForm: React.FC<PackFormSpecs.Props> = ({
146146
createPack(payload)
147147
.then(resp => {
148148
alertSuccess({message: 'Packing list created'});
149+
setHasPendingChanges(false);
149150
history.push(`/pack/${resp.id}`);
150151
})
151152
.catch(err => console.log(err));

0 commit comments

Comments
 (0)