File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -433,6 +433,20 @@ describe('App embed tests', () => {
433433 } ) ;
434434 } ) ;
435435
436+ test ( 'Should not add hideTagFilterChips if it is undefined' , async ( ) => {
437+ const appEmbed = new AppEmbed ( getRootEl ( ) , {
438+ ...defaultViewConfig ,
439+ showPrimaryNavbar : false ,
440+ } as AppViewConfig ) ;
441+ appEmbed . render ( ) ;
442+ await executeAfterWait ( ( ) => {
443+ expectUrlMatchesWithParams (
444+ getIFrameSrc ( ) ,
445+ `http://${ thoughtSpotHost } /?embedApp=true&primaryNavHidden=true&profileAndHelpInNavBarHidden=false${ defaultParams } ${ defaultParamsPost } #/home` ,
446+ ) ;
447+ } ) ;
448+ } ) ;
449+
436450 test ( 'Should add enableSearchAssist flagto the iframe src' , async ( ) => {
437451 const appEmbed = new AppEmbed ( getRootEl ( ) , {
438452 ...defaultViewConfig ,
Original file line number Diff line number Diff line change @@ -703,7 +703,6 @@ export class AppEmbed extends V1Embed {
703703 params [ Param . IsUnifiedSearchExperienceEnabled ] = isUnifiedSearchExperienceEnabled ;
704704 params [ Param . CoverAndFilterOptionInPDF ] = ! ! coverAndFilterOptionInPDF ;
705705 params [ Param . LiveboardXLSXCSVDownload ] = ! ! liveboardXLSXCSVDownload ;
706- params [ Param . HideTagFilterChips ] = hideTagFilterChips ;
707706
708707 params = this . getBaseQueryParams ( params ) ;
709708
@@ -771,6 +770,10 @@ export class AppEmbed extends V1Embed {
771770 if ( isPNGInScheduledEmailsEnabled !== undefined ) {
772771 params [ Param . isPNGInScheduledEmailsEnabled ] = isPNGInScheduledEmailsEnabled ;
773772 }
773+
774+ if ( hideTagFilterChips !== undefined ) {
775+ params [ Param . HideTagFilterChips ] = hideTagFilterChips ;
776+ }
774777
775778 params [ Param . DataPanelV2Enabled ] = dataPanelV2 ;
776779 params [ Param . HideHomepageLeftNav ] = hideHomepageLeftNav ;
Original file line number Diff line number Diff line change 1191411914 "sources": [
1191511915 {
1191611916 "fileName": "embed/app.ts",
11917- "line": 990 ,
11917+ "line": 993 ,
1191811918 "character": 11
1191911919 }
1192011920 ],
1203112031 "sources": [
1203212032 {
1203312033 "fileName": "embed/app.ts",
12034- "line": 859 ,
12034+ "line": 862 ,
1203512035 "character": 11
1203612036 }
1203712037 ],
1236812368 "sources": [
1236912369 {
1237012370 "fileName": "embed/app.ts",
12371- "line": 964 ,
12371+ "line": 967 ,
1237212372 "character": 11
1237312373 }
1237412374 ],
1274412744 "sources": [
1274512745 {
1274612746 "fileName": "embed/app.ts",
12747- "line": 1019 ,
12747+ "line": 1022 ,
1274812748 "character": 17
1274912749 }
1275012750 ],
You can’t perform that action at this time.
0 commit comments