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