Skip to content
Snippets Groups Projects
Unverified Commit 4480b288 authored by Júlia Jaeger Foresti's avatar Júlia Jaeger Foresti Committed by GitHub
Browse files

chore: object containing `key` prop being spread into MenuItem (#35128)

parent 0d9ff034
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,6 @@ export const useRoomToolboxActions = ({ actions, openTab }: Pick<RoomToolboxCont ...@@ -21,7 +21,6 @@ export const useRoomToolboxActions = ({ actions, openTab }: Pick<RoomToolboxCont
const hiddenActions = (!roomToolboxExpanded ? actions : [...appsActions, ...normalActions.slice(6)]) const hiddenActions = (!roomToolboxExpanded ? actions : [...appsActions, ...normalActions.slice(6)])
.filter((item) => !item.disabled && !item.featured) .filter((item) => !item.disabled && !item.featured)
.map((item) => ({ .map((item) => ({
'key': item.id,
'content': t(item.title), 'content': t(item.title),
'onClick': 'onClick':
item.action ?? item.action ??
...@@ -39,7 +38,7 @@ export const useRoomToolboxActions = ({ actions, openTab }: Pick<RoomToolboxCont ...@@ -39,7 +38,7 @@ export const useRoomToolboxActions = ({ actions, openTab }: Pick<RoomToolboxCont
return acc; return acc;
} }
const newSection = { id: group, key: item.key, title: group === 'apps' ? t('Apps') : '', items: [item] }; const newSection = { id: group, title: group === 'apps' ? t('Apps') : '', items: [item] };
acc.push(newSection); acc.push(newSection);
return acc; return acc;
......
...@@ -21,7 +21,6 @@ export const useRoomToolboxActions = ({ actions, openTab }: Pick<RoomToolboxCont ...@@ -21,7 +21,6 @@ export const useRoomToolboxActions = ({ actions, openTab }: Pick<RoomToolboxCont
const hiddenActions = (!roomToolboxExpanded ? actions : [...appsActions, ...normalActions.slice(6)]) const hiddenActions = (!roomToolboxExpanded ? actions : [...appsActions, ...normalActions.slice(6)])
.filter((item) => !item.disabled && !item.featured) .filter((item) => !item.disabled && !item.featured)
.map((item) => ({ .map((item) => ({
'key': item.id,
'content': t(item.title), 'content': t(item.title),
'onClick': 'onClick':
item.action ?? item.action ??
...@@ -39,7 +38,7 @@ export const useRoomToolboxActions = ({ actions, openTab }: Pick<RoomToolboxCont ...@@ -39,7 +38,7 @@ export const useRoomToolboxActions = ({ actions, openTab }: Pick<RoomToolboxCont
return acc; return acc;
} }
const newSection = { id: group, key: item.key, title: group === 'apps' ? t('Apps') : '', items: [item] }; const newSection = { id: group, title: group === 'apps' ? t('Apps') : '', items: [item] };
acc.push(newSection); acc.push(newSection);
return acc; return acc;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment