File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
frontend/src/app/pages/MainPage/pages/ViewPage Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -206,15 +206,7 @@ export const saveView = createAsyncThunk<
206206 ? ( currentView as ViewViewModel )
207207 : ( selectCurrentEditingView ( getState ( ) ) as ViewViewModel ) ;
208208 const orgId = selectOrgId ( getState ( ) ) ;
209-
210- // keep to save view model config version
211- if ( currentEditingView ?. model && ! currentEditingView ?. model ?. version ) {
212- currentEditingView = produce ( currentEditingView , draft => {
213- draft . model = Object . assign ( { } , currentEditingView . model , {
214- version : APP_CURRENT_VERSION ,
215- } ) ;
216- } ) ;
217- }
209+
218210 try {
219211 if ( isNewView ( currentEditingView . id ) || isSaveAs ) {
220212 const { data } = await request < View > ( {
Original file line number Diff line number Diff line change 1717 */
1818
1919import { TreeDataNode } from 'antd' ;
20+ import { APP_CURRENT_VERSION } from 'app/migration/constants' ;
2021import { FONT_WEIGHT_MEDIUM , SPACE_UNIT } from 'styles/StyleConstants' ;
2122import { Nullable } from 'types' ;
2223import { isEmptyArray } from 'utils/object' ;
@@ -47,7 +48,9 @@ export function generateEditingView(
4748 index : null ,
4849 script : '' ,
4950 config : { } ,
50- model : { } ,
51+ model : {
52+ version : APP_CURRENT_VERSION ,
53+ } ,
5154 originVariables : [ ] ,
5255 variables : [ ] ,
5356 originColumnPermissions : [ ] ,
You can’t perform that action at this time.
0 commit comments