mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-20 11:16:15 +00:00
Fix unused code
This commit is contained in:
parent
60a3a5ffcf
commit
8299ca5f9d
@ -278,10 +278,6 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
visible: true,
|
visible: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO: Where is this used?
|
|
||||||
const documentContentsContainerId = `documentContentsContainer${props.tabId}`;
|
|
||||||
const documentContentsGridId = `documentContentsGrid${props.tabId}`;
|
|
||||||
|
|
||||||
const partitionKey: DataModels.PartitionKey =
|
const partitionKey: DataModels.PartitionKey =
|
||||||
props.partitionKey || (props.collection && props.collection.partitionKey);
|
props.partitionKey || (props.collection && props.collection.partitionKey);
|
||||||
const partitionKeyPropertyHeaders: string[] = props.collection?.partitionKeyPropertyHeaders || partitionKey?.paths;
|
const partitionKeyPropertyHeaders: string[] = props.collection?.partitionKeyPropertyHeaders || partitionKey?.paths;
|
||||||
@ -1122,7 +1118,7 @@ const DocumentsTabComponent: React.FunctionComponent<{
|
|||||||
|
|
||||||
const columnHeaders = {
|
const columnHeaders = {
|
||||||
idHeader: props.isPreferredApiMongoDB ? "_id" : "id",
|
idHeader: props.isPreferredApiMongoDB ? "_id" : "id",
|
||||||
partitionKeyHeaders: partitionKeyPropertyHeaders || [],
|
partitionKeyHeaders: (showPartitionKey && partitionKeyPropertyHeaders) || [],
|
||||||
};
|
};
|
||||||
|
|
||||||
const onSelectedRowsChange = (selectedRows: Set<TableRowId>) => {
|
const onSelectedRowsChange = (selectedRows: Set<TableRowId>) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user