mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-15 03:13:20 +08:00
Merge pull request #970 from mlorb/ml-sci-1614
Fix bug with ajax error caused to the other user when deleting column…
This commit is contained in:
commit
7b83fd8807
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ class RepositoryTableState < ApplicationRecord
|
||||||
index = repository_state['columns'].count
|
index = repository_state['columns'].count
|
||||||
repository_state['columns'][index] = RepositoryDatatable::
|
repository_state['columns'][index] = RepositoryDatatable::
|
||||||
REPOSITORY_TABLE_DEFAULT_STATE['columns'].first
|
REPOSITORY_TABLE_DEFAULT_STATE['columns'].first
|
||||||
repository_state['ColReorder'].insert(2, index)
|
repository_state['ColReorder'].insert(2, index.to_s)
|
||||||
end
|
end
|
||||||
table_state.update(state: repository_state)
|
table_state.update(state: repository_state)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue