open form view detail from grid

This commit is contained in:
Jan Prochazka
2021-01-14 11:38:08 +01:00
parent f2dbe1f103
commit 9600c213ef
5 changed files with 73 additions and 15 deletions

View File

@@ -3,7 +3,12 @@ import React from 'react';
const loadGridConfigFunc = (tabid) => () => {
const existing = localStorage.getItem(`tabdata_grid_${tabid}`);
if (existing) return JSON.parse(existing);
if (existing) {
return {
...createGridConfig(),
...JSON.parse(existing),
};
}
return createGridConfig();
};