Skip to content

Commit e12b36f

Browse files
authored
Fix: remove old pageContributions for tableExport (#3499)
* fix: remove old pageContribution for tableExport * removed unused import
1 parent e770468 commit e12b36f

File tree

1 file changed

+2
-6
lines changed
  • src/main/resources/site/parts/table

1 file changed

+2
-6
lines changed

src/main/resources/site/parts/table/table.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getContent, getComponent, pageUrl } from '/lib/xp/portal'
33
import { render } from '/lib/thymeleaf'
44
import { parseTable } from '/lib/ssb/parts/table'
55
import { type SourceList, type SourcesConfig } from '/lib/types/sources'
6-
import { scriptAsset, getSources } from '/lib/ssb/utils/utils'
6+
import { getSources } from '/lib/ssb/utils/utils'
77
import {
88
type DropdownItem as TableDownloadDropdownItem,
99
type DropdownItems as TableDownloadDropdownItems,
@@ -146,11 +146,7 @@ function renderPart(req: XP.Request, tableId?: string): XP.Response {
146146
}
147147
}
148148

149-
return r4xpRender('Table', getProps(req, tableId), req, {
150-
pageContributions: {
151-
bodyEnd: [scriptAsset('js/tableExport.js')],
152-
},
153-
})
149+
return r4xpRender('Table', getProps(req, tableId), req)
154150
}
155151

156152
function getDownloadTableOptions(): TableDownloadDropdownItems {

0 commit comments

Comments
 (0)