Fix root mistakes on pulse components
This commit is contained in:
Родитель
7871280d7f
Коммит
badb661cc5
|
@ -10,7 +10,7 @@ export default (apps, env) => {
|
|||
document.querySelectorAll(`.pulse-project-list`).forEach((target) => {
|
||||
apps.push(
|
||||
new Promise((resolve) => {
|
||||
const root = createRoot(container);
|
||||
const root = createRoot(target);
|
||||
root.render(
|
||||
<PulseProjectList
|
||||
env={env}
|
||||
|
@ -22,8 +22,7 @@ export default (apps, env) => {
|
|||
reverseChronological={target.dataset.reversed === `True`}
|
||||
whenLoaded={() => resolve()}
|
||||
directLink={target.dataset.directLink === `True`}
|
||||
/>,
|
||||
target
|
||||
/>
|
||||
);
|
||||
})
|
||||
);
|
||||
|
|
|
@ -36,7 +36,7 @@ export default (apps) => {
|
|||
|
||||
apps.push(
|
||||
new Promise((resolve) => {
|
||||
const root = createRoot(container);
|
||||
const root = createRoot(target);
|
||||
root.render(
|
||||
<TabbedProfileFilters
|
||||
apiEndPoint={contentArea.dataset.apiEndpoint}
|
||||
|
@ -47,8 +47,7 @@ export default (apps) => {
|
|||
subfiltersKey={contentArea.dataset.subfiltersKey}
|
||||
whenLoaded={() => resolve}
|
||||
profiles={profiles}
|
||||
/>,
|
||||
target
|
||||
/>
|
||||
);
|
||||
})
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче