Skip to content

Commit

Permalink
fix(composer): Fix to persist drag/drop actions after refresh (#367)
Browse files Browse the repository at this point in the history
Co-authored-by: Emily Dodds <dodemily@amazon.com>
  • Loading branch information
mumanity and mumanity committed Nov 15, 2022
1 parent 24f3914 commit 50f3538
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/scene-composer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"coverageThreshold": {
"global": {
"lines": 77.51,
"statements": 76.6,
"statements": 76.61,
"functions": 76.76,
"branches": 63.17,
"branchesTrue": 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { isEmpty } from 'lodash';

import { useSceneComposerId } from '../../../common/sceneComposerIdContext';
import { findComponentByType, isEnvironmentNode } from '../../../utils/nodeUtils';
import { ISceneNodeInternal, useNodeErrorState, useStore } from '../../../store';
import { ISceneNodeInternal, useNodeErrorState, useSceneDocument, useStore } from '../../../store';
import useLifecycleLogging from '../../../logger/react-logger/hooks/useLifecycleLogging';
import { KnownComponentType } from '../../../interfaces';

Expand Down Expand Up @@ -104,7 +104,8 @@ const SceneHierarchyDataProvider: FC<SceneHierarchyDataProviderProps> = ({ selec
useLifecycleLogging('SceneHierarchyDataProvider');
const sceneComposerId = useSceneComposerId();
const { document, removeSceneNode } = useStore(sceneComposerId)((state) => state);
const { updateSceneNodeInternal, isEditing } = useStore(sceneComposerId)((state) => state);
const { isEditing } = useStore(sceneComposerId)((state) => state);
const { updateSceneNodeInternal } = useSceneDocument(sceneComposerId);
const selectedSceneNodeRef = useStore(sceneComposerId)((state) => state.selectedSceneNodeRef);
const getSceneNodeByRef = useStore(sceneComposerId)((state) => state.getSceneNodeByRef);
const getObject3DBySceneNodeRef = useStore(sceneComposerId)((state) => state.getObject3DBySceneNodeRef);
Expand Down

0 comments on commit 50f3538

Please sign in to comment.