Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

Commit 39ddc83

Browse files
committed
object store: fix model functions
- Fix model function `get` --> `put` - Fix divider in action menu not having a key and thus throwing a warning Signed-off-by: Moritz Röhrich <[email protected]>
1 parent 0e7d1bf commit 39ddc83

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/DropOption/DropOption.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Dropdown, Button, Icon, Menu, Tooltip } from 'antd'
55
const DropOption = ({ onMenuClick, menuOptions = [], buttonStyle, dropdownProps, tooltipProps }) => {
66
const menu = menuOptions.map(item => {
77
if (item.type === 'divider') {
8-
return (<Menu.Divider />)
8+
return (<Menu.Divider key={Math.random()} />)
99
}
1010
const tooltip = item.tooltip !== undefined ? item.tooltip : ''
1111
return (

src/models/objectStore.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ export default {
2929
const data = yield call(listObjectStores, payload)
3030
yield put({ type: 'listObjectStores', payload: { ...data } })
3131
},
32-
*get({ payload }, { call, get }) {
32+
*get({ payload }, { call, put }) {
3333
const data = yield call(getObjectStore, payload)
34-
yield get({ type: 'getObjectStore', payload: { ...data } })
34+
yield put({ type: 'getObjectStore', payload: { ...data } })
3535
},
3636
*create({ payload, callback }, { call, put }) {
3737
yield call(createObjectStore, payload)

0 commit comments

Comments
 (0)