mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-10-13 23:38:45 +01:00
get the user defined system key value for updating (#2134)
* get the user defined system key value for updating * Added the systemkey check for non-defined system key
This commit is contained in:
parent
2dbec019af
commit
985c744198
@ -124,7 +124,7 @@ export const extractPartitionKeyValues = (
|
||||
documentContent: any,
|
||||
partitionKeyDefinition: PartitionKeyDefinition,
|
||||
): PartitionKey[] => {
|
||||
if (!partitionKeyDefinition.paths || partitionKeyDefinition.paths.length === 0 || partitionKeyDefinition.systemKey) {
|
||||
if (!partitionKeyDefinition.paths || partitionKeyDefinition.paths.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
@ -136,7 +136,7 @@ export const extractPartitionKeyValues = (
|
||||
|
||||
if (value !== undefined) {
|
||||
partitionKeyValues.push(value);
|
||||
} else {
|
||||
} else if (!partitionKeyDefinition.systemKey) {
|
||||
partitionKeyValues.push({});
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user