Skip to content

Commit f4b8f74

Browse files
authored
Remove "unsaved changes" popup when creating a pack
1 parent f62762b commit f4b8f74

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)