Browse Source

Update ClientTable.tsx (#3342)

* Update ClientTable.tsx

solves: #3339

## Changes

changed   owncast/web/components/admin/ClientTable.tsx line 44 `value={selectedKeys[0]})` to `value={selectedKeys[0].toString()} // Convert selectedKeys[0] to string
` as the value attribute expects a value of type string | number | readonly string[]` but previously it was assigned bigint.

* Update ClientTable.tsx

solves: #3339

## Changes

changed   owncast/web/components/admin/ClientTable.tsx line 44 `value={selectedKeys[0]})` to `value={selectedKeys[0].toString()} // Convert selectedKeys[0] to string
` as the value attribute expects a value of type `string | number | readonly string[]` but previously it was assigned bigint.
pull/3324/head
Vishal Sharma 2 years ago committed by GitHub
parent
commit
1917b15b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web/components/admin/ClientTable.tsx

2
web/components/admin/ClientTable.tsx

@ -41,7 +41,7 @@ export const ClientTable: FC<ClientTableProps> = ({ data }) => {
<div style={{ padding: 8 }}> <div style={{ padding: 8 }}>
<Input <Input
placeholder="Search display names..." placeholder="Search display names..."
value={selectedKeys[0]} value={selectedKeys[0].toString()} // Convert selectedKeys[0] to string
onChange={e => { onChange={e => {
setSelectedKeys(e.target.value ? [e.target.value] : []); setSelectedKeys(e.target.value ? [e.target.value] : []);
confirm({ closeDropdown: false }); confirm({ closeDropdown: false });

Loading…
Cancel
Save