Restoring state on datatable column refresh

I want to save and restore datatable column state on column refresh when switching between names and filters.
Everything works fine except for column hiding, when i get:
hideColumn: invalid ID or alredy hidden
(Uncaught TypeError: Cannot read property ‘header’ of undefined in console)

https://snippet.webix.com/rdc90tzk

Hi @keson ,

The initial config object (view/column/data) will be affected after its 1st usage, so as a solution, you need to keep it safe and use its copy everywhere instead of a strict reference:

https://snippet.webix.com/g034tnq8

hi @Listopad,

in the meantime, i’ve found simplier solution with one columns config:
https://snippet.webix.com/zw0672e4