Skip to content

Commit b61305e

Browse files
committed
[gephi-lite] keep datatable type while doing a reset
This fix the issue while you open a new graph and that you are on the datatable edge page.
1 parent 25a801a commit b61305e

File tree

1 file changed

+1
-1
lines changed
  • packages/gephi-lite/src/core/dataTable

1 file changed

+1
-1
lines changed

packages/gephi-lite/src/core/dataTable/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { getEmptyDataTableState } from "./utils";
1212
* **********
1313
*/
1414
export const reset: Producer<DataTableState, []> = () => {
15-
return () => getEmptyDataTableState();
15+
return (state) => ({ ...getEmptyDataTableState(), type: state.type });
1616
};
1717
export const setType: Producer<DataTableState, [ItemType]> = (type) => {
1818
return (state) => ({

0 commit comments

Comments
 (0)