Skip to content

Commit

Permalink
fix(image): fixes texture initialisation (#707)
Browse files Browse the repository at this point in the history
* fix(image): fixes texture initialisation

Not entirely sure of the symantic difference here? There is one, but I need to deconstruct it before
I properly understand.

fixes #706

* refactor: destructs variable instead of assignment
  • Loading branch information
2xAA authored Mar 9, 2022
1 parent 728d8ec commit b09ee89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/application/worker/store/modules/dataTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const state = {
const { path } = options;
let id;
try {
id = await store.dispatch("images/createImageFromPath", {
({ id } = await store.dispatch("images/createImageFromPath", {
path
}).id;
}));
} catch (e) {
console.error(e);
}
Expand Down

0 comments on commit b09ee89

Please sign in to comment.