Commit 6125dec4 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/position' into 'main'

fix

See merge request !141
parents facd3bfb d445f1c5
Pipeline #20744 passed with stages
in 14 minutes and 21 seconds
......@@ -141,7 +141,7 @@ export function extendOccupant<T extends DuelFieldState>(
const target = state.inner.find((_, idx) => idx == sequence);
if (target) {
target.occupant = newMeta;
if (position) {
if (typeof position !== "undefined") {
target.location.position = position;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment