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