Fix loadStartKey

This commit is contained in:
Laurent Nguyen 2024-04-22 16:23:38 +02:00
parent 8140f15098
commit 25f63095a3

View File

@ -353,7 +353,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
},
onLoadStartKey,
);
setOnLoadStartKey(null);
setOnLoadStartKey(undefined);
}
}
}
@ -825,7 +825,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
},
onLoadStartKey,
);
setOnLoadStartKey(null);
setOnLoadStartKey(undefined);
}
},
(error) => {
@ -846,7 +846,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
},
onLoadStartKey,
);
setOnLoadStartKey(null);
setOnLoadStartKey(undefined);
}
},
)
@ -1423,7 +1423,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
_onLoadStartKey,
);
// TODO: Set on Load start key to null to stop telemetry traces
// this.onLoadStartKey = null;
setOnLoadStartKey(null);
}
},
(error: any) => {
@ -1442,7 +1442,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
_onLoadStartKey,
);
// TODO: Set on Load start key to null to stop telemetry traces
// this.onLoadStartKey = null;
setOnLoadStartKey(undefined);
}
},
)
@ -1456,12 +1456,12 @@ const DocumentsTabComponent: React.FunctionComponent<{
<div
className="tab-pane active"
/* data-bind="
setTemplateReady: true,
attr:{
id: tabId
},
visible: isActive"
*/
setTemplateReady: true,
attr:{
id: tabId
},
visible: isActive"
*/
role="tabpanel"
style={{ display: "flex" }}
>
@ -1550,9 +1550,9 @@ const DocumentsTabComponent: React.FunctionComponent<{
onClick={() => refreshDocumentsGrid(true)}
disabled={!applyFilterButton.enabled}
/* data-bind="
click: refreshDocumentsGrid.bind($data, true),
enable: applyFilterButton.enabled"
*/
click: refreshDocumentsGrid.bind($data, true),
enable: applyFilterButton.enabled"
*/
aria-label="Apply filter"
tabIndex={0}
>
@ -1564,9 +1564,9 @@ const DocumentsTabComponent: React.FunctionComponent<{
<button
className="filterbtnstyle queryButton"
/* data-bind="
visible: !isPreferredApiMongoDB && isExecuting,
click: onAbortQueryClick"
*/
visible: !isPreferredApiMongoDB && isExecuting,
click: onAbortQueryClick"
*/
aria-label="Cancel Query"
tabIndex={0}
>