Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 08c8029

Browse files
committed
revoke revoked changed, refactor
1 parent b8e68e4 commit 08c8029

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/public/views/userView/data/dataPanel.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ export default function dataPanel(model, runs, detectors, flags) {
3131
const { dataAccess, periods } = model;
3232
const { page, index } = dataAccess.getCurrentDataPointer();
3333

34-
if (page === pageNames.periods) {
35-
return periodsPanel(periods, model);
34+
// Handling with new API
35+
switch (page) {
36+
case pageNames.periods:
37+
return periodsPanel(periods, model);
3638
}
3739

40+
// Handling with legacy API
3841
const data = dataAccess.fetchedData[page][index];
3942
return data ? data.match({
4043
NotAsked: () => obsoleteUnknown(dataAccess),

0 commit comments

Comments
 (0)