Skip to content

Commit

Permalink
really weird fix for adding textures
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Nov 9, 2023
1 parent c203e05 commit 9f7e7fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v2/service/use.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export default class UseService {
})
.catch(() => {
this.useRepo
.set(use)
// really weird fix for the id somehow becoming undefined
.set(structuredClone(use))
.then(() => this.getUseByIdOrName(use.id))
.then((res) => resolve(res as Use))
.catch((...args) => reject(args));
Expand Down

0 comments on commit 9f7e7fc

Please sign in to comment.