From 4aaf140de5314f9bf38111b506658529c500ae6c Mon Sep 17 00:00:00 2001 From: AllenFang Date: Sun, 29 Sep 2019 15:06:11 +0800 Subject: [PATCH] fix wrong story code --- .../examples/csv/export-custom-data.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-bootstrap-table2-example/examples/csv/export-custom-data.js b/packages/react-bootstrap-table2-example/examples/csv/export-custom-data.js index 50da9b7..929a9a2 100644 --- a/packages/react-bootstrap-table2-example/examples/csv/export-custom-data.js +++ b/packages/react-bootstrap-table2-example/examples/csv/export-custom-data.js @@ -36,11 +36,12 @@ const columns = [{ const MyExportCSV = (props) => { const handleClick = () => { - props.onExport(); + // passing my custom data + props.onExport(products.filter(r => r.id > 2)); }; return (
- +
); };