Skip to content

Commit

Permalink
Fix an issue where expanding groups didn't use the latest state
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Boberg <[email protected]>
  • Loading branch information
axelboberg committed Mar 1, 2024
1 parent 39f6307 commit b7a0777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/rundown/app/components/RundownGroupItem/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ export function RundownGroupItem ({ index, item }) {
* @param { Boolean } newState Whether or not the
* group is collapsed
*/
function setCollapsed (newState) {
async function setCollapsed (newState) {
if (!item?.id) {
return
}

const selection = shared?._connections?.[bridge.client.getIdentity()]?.selection || []
const selection = await bridge.client.getSelection()
if (!(selection.includes(item.id))) {
return
}
Expand Down

0 comments on commit b7a0777

Please sign in to comment.