mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
fix react hooks ordering
This commit is contained in:
parent
6abd5c6899
commit
0eb2c41fd7
1 changed files with 1 additions and 1 deletions
|
|
@ -16,11 +16,11 @@ export function ContextualControls() {
|
||||||
const ___ = useStream(ctx => ctx.viewer.parametricManager.$update);
|
const ___ = useStream(ctx => ctx.viewer.parametricManager.$update);
|
||||||
|
|
||||||
const ctx = useContext(SketcherAppContext);
|
const ctx = useContext(SketcherAppContext);
|
||||||
|
const [modification, setModification] = useState(0);
|
||||||
|
|
||||||
if (selection.length === 0) {
|
if (selection.length === 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const [modification, setModification] = useState(0);
|
|
||||||
const obj = selection.length === 1 ? selection[0] : null;
|
const obj = selection.length === 1 ? selection[0] : null;
|
||||||
|
|
||||||
const availableActions = matchAvailableActions(selection);
|
const availableActions = matchAvailableActions(selection);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue