Skip to content

Commit

Permalink
web: fix an incorrect use of useMemo (#5554)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicks authored Mar 2, 2022
1 parent 14c17d7 commit 53a0dc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/OverviewResourceSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function OverviewResourceSidebar(
let resources = props.view.uiResources || []
let buttons = useMemo(
() => buttonsByComponent(props.view.uiButtons),
props.view.uiButtons
[props.view.uiButtons]
)
let items = resources.map((res) => {
let stopBuildButton = buttons.get(res.metadata?.name!)?.stopBuild
Expand Down

0 comments on commit 53a0dc6

Please sign in to comment.