🎨 Remove not essential store from the rendering of the PassagesDisplay component
This commit is contained in:
@@ -173,9 +173,8 @@ export const PassagesDisplay: ParentComponent = () => {
|
||||
chunkSize += byLinePassagesKeys.length;
|
||||
}
|
||||
else {
|
||||
const [store] = createStore(chunk);
|
||||
const panelid = index++;
|
||||
const panel = <PassagesPanel show={panelid == displayedPanelId()} passages={store} />;
|
||||
const panel = <PassagesPanel show={panelid == displayedPanelId()} passages={chunk} />;
|
||||
newPanels.push(panel);
|
||||
positioneds.push({ position: panelid, panel: panel });
|
||||
|
||||
@@ -186,8 +185,7 @@ export const PassagesDisplay: ParentComponent = () => {
|
||||
}
|
||||
if (chunkSize) {
|
||||
const panelId = index++;
|
||||
const [store] = createStore(chunk);
|
||||
const panel = <PassagesPanel show={panelId == displayedPanelId()} passages={store} />;
|
||||
const panel = <PassagesPanel show={panelId == displayedPanelId()} passages={chunk} />;
|
||||
newPanels.push(panel);
|
||||
positioneds.push({ position: panelId, panel: panel });
|
||||
}
|
||||
|
Reference in New Issue
Block a user