tsv2-library 1.1.0-dev-alpha.42 → 1.1.0-dev-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62915,31 +62915,18 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
62915
62915
  }
62916
62916
  };
62917
62917
  const handleFetchOptions = async (baseParams) => {
62918
- var _a;
62919
62918
  if (props.unpaired)
62920
62919
  return [];
62921
62920
  const tagType = getTagTypeQuery();
62922
- const optionType = props.type === "asset" ? void 0 : "unlinked";
62923
62921
  const excludeId = JSON.stringify(props.selectedAssets ?? []);
62924
- let extraParams = {};
62925
- if (optionType === "unlinked") {
62926
- extraParams = {
62927
- mode: props.type,
62928
- asset: (_a = props.currentAssetDetail) == null ? void 0 : _a._id
62929
- };
62930
- } else {
62931
- extraParams = {
62932
- excludeId,
62933
- tagType,
62934
- status: JSON.stringify(props.assetStatus ?? ["Available"]),
62935
- group: props.groupKey ? `[${props.groupKey.toString()}]` : void 0
62936
- };
62937
- }
62938
62922
  const finalParams = {
62939
62923
  ...baseParams,
62940
- ...extraParams
62924
+ excludeId,
62925
+ tagType,
62926
+ status: JSON.stringify(props.assetStatus ?? ["Available"]),
62927
+ group: props.groupKey ? `[${props.groupKey.toString()}]` : void 0
62941
62928
  };
62942
- return await AssetsServices.getOptions(optionType, finalParams);
62929
+ return await AssetsServices.postAssetOption(finalParams);
62943
62930
  };
62944
62931
  const filterOptionValues = (fieldName) => {
62945
62932
  var _a, _b, _c;