mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-29 08:22:49 -05:00
Fix clicking stream ids copying when no empty space
This commit is contained in:
@@ -282,6 +282,7 @@ function App({ wsEndpoint }) {
|
||||
|
||||
const handleClickId = useCallback(
|
||||
(streamId) => {
|
||||
navigator.clipboard.writeText(streamId)
|
||||
const availableIdx = range(gridCount * gridCount).find(
|
||||
(i) => !sharedState.views[i].streamId,
|
||||
)
|
||||
@@ -289,7 +290,6 @@ function App({ wsEndpoint }) {
|
||||
return
|
||||
}
|
||||
handleSetView(availableIdx, streamId)
|
||||
navigator.clipboard.writeText(streamId)
|
||||
},
|
||||
[gridCount, sharedState],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user