|
@@ -125,7 +125,7 @@ export default storyBook(GridEditable, story => {
|
|
|
|
|
|
story('Row Mouse Events', () => {
|
|
story('Row Mouse Events', () => {
|
|
const [activeRowKey, setActiveRowKey] = useState<number | undefined>(undefined);
|
|
const [activeRowKey, setActiveRowKey] = useState<number | undefined>(undefined);
|
|
- const activeRow = activeRowKey ? data[activeRowKey] : undefined;
|
|
|
|
|
|
+ const activeRow = activeRowKey !== undefined ? data[activeRowKey] : undefined;
|
|
|
|
|
|
return (
|
|
return (
|
|
<Fragment>
|
|
<Fragment>
|