From 73b4bd9da24ccab5dd2db6445b25902330f95534 Mon Sep 17 00:00:00 2001 From: "wu.xiaojun" Date: Thu, 20 Jul 2023 11:00:08 +0800 Subject: [PATCH] remove termset name in term path https://github.com/pnp/sp-dev-fx-controls-react/issues/1597 --- src/services/SPTermStorePickerService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/SPTermStorePickerService.ts b/src/services/SPTermStorePickerService.ts index 23dca8bad..75f279d6b 100644 --- a/src/services/SPTermStorePickerService.ts +++ b/src/services/SPTermStorePickerService.ts @@ -534,7 +534,7 @@ export default class SPTermStorePickerService { if (term.Paths && term.Paths.length > 0) { const fullPath = term.Paths[0].replace(/^\[/, "").replace(/\]$/, ""); const fullPathParts = fullPath.split(":"); - path = fullPathParts.join(";") + ";" + term.DefaultLabel; + path = fullPathParts.slice(1).join(";") + ";" + term.DefaultLabel; termSetName = fullPathParts[0]; } return {