mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Datatable - amend replace to change SPACE for more than first instance with REGEX
This commit is contained in:
parent
77733d2b81
commit
e9c088136d
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ const DatatableCell = ({ column, document, currentUser }) => {
|
|||
const Component = column.component || Components[column.componentName] || Components.DatatableDefaultCell;
|
||||
const columnName = column.name || column;
|
||||
return (
|
||||
<td className={`datatable-item-${columnName.toLowerCase().replace(' ', '-')}`}><Component column={column} document={document} currentUser={currentUser} /></td>
|
||||
<td className={`datatable-item-${columnName.toLowerCase().replace(/\s/g,'-')}`}><Component column={column} document={document} currentUser={currentUser} /></td>
|
||||
)
|
||||
}
|
||||
registerComponent('DatatableCell', DatatableCell);
|
||||
|
|
Loading…
Add table
Reference in a new issue