Skip to content

Commit d6cfad4

Browse files
committed
fix(display-react): wrong onChangeSelectedProductLocation props name
1 parent 26e7e83 commit d6cfad4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/display-react/src/index.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function Display(
4747
onFilter,
4848
onLoadScene,
4949
onChangeScene,
50-
onChangeProductLocation,
50+
onChangeSelectedProductLocation,
5151
onChangeProduct,
5252
noCache,
5353
language,
@@ -59,7 +59,7 @@ function Display(
5959
const ctrl = controller || controllerRef
6060
const onErrorStable = useLatest(onError)
6161
const onChangeSceneStable = useLatest(onChangeScene)
62-
const onChangeProductLocationStable = useLatest(onChangeProductLocation)
62+
const onChangeSelectedProductLocationStable = useLatest(onChangeSelectedProductLocation)
6363
const onLoadSceneStable = useLatest(onLoadScene)
6464
const onChangeProductStable = useLatest(onChangeProduct)
6565
const onProductClickStable = useLatest(onProductClick)
@@ -102,10 +102,10 @@ function Display(
102102
const callbackOnLoadScene = registerEvent(ctrl, EVENTS.LOAD_SCENE, onLoadSceneStable)
103103
const callbackOnChangeScene = registerEvent(ctrl, EVENTS.CHANGE_SCENE, onChangeSceneStable)
104104
const callbackOnChangeProduct = registerEvent(ctrl, EVENTS.CHANGE_PRODUCT, onChangeProductStable)
105-
const callbackOnChangeProductLocationStable = registerEvent(
105+
const callbackOnChangeSelectedProductLocationStable = registerEvent(
106106
ctrl,
107107
EVENTS.CHANGE_PRODUCT_LOCATION,
108-
onChangeProductLocationStable,
108+
onChangeSelectedProductLocationStable,
109109
)
110110
const callbackOnError = registerEvent(ctrl, EVENTS.ERROR, onErrorStable)
111111
const callbackOnProductClick = registerEvent(ctrl, EVENTS.PRODUCT_CLICK, onProductClickStable)
@@ -114,7 +114,7 @@ function Display(
114114
unRegisterEvent(ctrl, EVENTS.LOAD_SCENE, callbackOnLoadScene)
115115
unRegisterEvent(ctrl, EVENTS.CHANGE_SCENE, callbackOnChangeScene)
116116
unRegisterEvent(ctrl, EVENTS.CHANGE_PRODUCT, callbackOnChangeProduct)
117-
unRegisterEvent(ctrl, EVENTS.CHANGE_PRODUCT_LOCATION, callbackOnChangeProductLocationStable)
117+
unRegisterEvent(ctrl, EVENTS.CHANGE_PRODUCT_LOCATION, callbackOnChangeSelectedProductLocationStable)
118118
unRegisterEvent(ctrl, EVENTS.PRODUCT_CLICK, callbackOnProductClick)
119119
unRegisterEvent(ctrl, EVENTS.FILTER, callbackOnFilter)
120120
unRegisterEvent(ctrl, EVENTS.ERROR, callbackOnError)
@@ -137,7 +137,7 @@ function Display(
137137
onErrorStable,
138138
onLoadSceneStable,
139139
onChangeSceneStable,
140-
onChangeProductLocationStable,
140+
onChangeSelectedProductLocationStable,
141141
controller,
142142
onProductClickStable,
143143
onChangeProductStable,

0 commit comments

Comments
 (0)