File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed
Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -217,16 +217,6 @@ export default {
217217 }
218218 })
219219
220- // Restore data:
221- // e.g. if we save predefined inquiry the tab will be created again
222- // (because of new id) and
223- // it will be without sql result and has default view - table.
224- // That's why we need to restore data and view
225- this .$nextTick (() => {
226- this .currentInquiryTab .result = dataSet
227- this .currentInquiryTab .view = tabView
228- })
229-
230220 // Hide dialogs
231221 this .$modal .hide (' save' )
232222 this .$modal .hide (' inquiry-conflict' )
Original file line number Diff line number Diff line change @@ -1206,19 +1206,6 @@ describe('MainMenu.vue', () => {
12061206
12071207 // check that 'inquirySaved' event was triggered on eventBus
12081208 expect ( eventBus . $emit . calledOnceWith ( 'inquirySaved' ) ) . to . equal ( true )
1209-
1210- // We saved predefined inquiry, so the tab will be created again
1211- // (because of new id) and it will be without sql result and has default view - table.
1212- // That's why we need to restore data and view.
1213- // Check that result and view are preserved in the currentTab:
1214- expect ( state . currentTab . viewType ) . to . equal ( 'chart' )
1215- expect ( state . currentTab . result ) . to . eql ( {
1216- columns : [ 'id' , 'name' ] ,
1217- values : [
1218- [ 1 , 'Harry Potter' ] ,
1219- [ 2 , 'Drako Malfoy' ]
1220- ]
1221- } )
12221209 } )
12231210
12241211 it ( 'Cancel saving' , async ( ) => {
You can’t perform that action at this time.
0 commit comments