diff --git a/wax-prosemirror-services/src/BottomInfoService/CounterInfoService/CounterTool.js b/wax-prosemirror-services/src/BottomInfoService/CounterInfoService/CounterTool.js index 0cb71d7b00a7daf4090ae1def36752442ddb7b6a..e7424b3b09685779755325af1be94d5ab32679c9 100644 --- a/wax-prosemirror-services/src/BottomInfoService/CounterInfoService/CounterTool.js +++ b/wax-prosemirror-services/src/BottomInfoService/CounterInfoService/CounterTool.js @@ -202,9 +202,9 @@ const CounterTool = ({ view: { state }, item }) => { item={item} view={state} > - {Object.keys(infoDropDownOptions).map(key => ( - <Counter key={key} title={infoDropDownOptions[key].name}> - <span>{infoDropDownOptions[key].name}</span> + {infoDropDownOptions.map(option => ( + <Counter key={option.name} title={option.name}> + <span>{option.name}</span> </Counter> ))} </CounterInfoComponent>