udp-react-enterprise-component-library 25.1.0-beta.2 → 25.1.0-beta.4
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.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -37976,7 +37976,7 @@ const useUdpExport = (apiCatalogId, productId) => {
|
|
|
37976
37976
|
const [activeExportJob, setActiveExportJob] = useState();
|
|
37977
37977
|
const [exportLoading, setExportLoading] = useState(false);
|
|
37978
37978
|
const [fileResultData, setFileResultData] = useState();
|
|
37979
|
-
const { data: selectedEntity, loading: entityLoading } = usePromotedMethodEntity(entity,
|
|
37979
|
+
const { data: selectedEntity, loading: entityLoading } = usePromotedMethodEntity(entity, true, apiCatalogId, productId);
|
|
37980
37980
|
const { data: udpJobEntity } = usePromotedMethodEntity("udpJob", true, apiCatalogId, productId);
|
|
37981
37981
|
const refetchActiveJobData = useCallback(async () => {
|
|
37982
37982
|
if (udpJobEntity?.unityBaseGetMethod?.apiMethodId) await executeQueryWithParameters({ data: { id: activeExportJob?.id } }, udpJobEntity?.unityBaseGetMethod?.apiMethodId).then((res) => {
|
|
@@ -38043,7 +38043,7 @@ const useUdpExport = (apiCatalogId, productId) => {
|
|
|
38043
38043
|
}
|
|
38044
38044
|
}, [searchObject, selectedEntity?.unityBaseExportMethod?.apiMethodId]);
|
|
38045
38045
|
useEffect(() => {
|
|
38046
|
-
if (
|
|
38046
|
+
if (!entityLoading) {
|
|
38047
38047
|
if (selectedEntity?.unityBaseSearchMethod === null) addErrorIfNotExists("search", `${getSanitizedName(entity)}'s search method must be promoted`, "error");
|
|
38048
38048
|
else initialSearchWithParams();
|
|
38049
38049
|
if (selectedEntity?.unityBaseExportMethod === null) addErrorIfNotExists("export", `${getSanitizedName(entity)}'s export method must be promoted`, "error");
|
|
@@ -38174,7 +38174,7 @@ const ApiMethodInstanceUdpGrid = (props) => {
|
|
|
38174
38174
|
//#endregion
|
|
38175
38175
|
//#region src/UI/templates/newGrid/BackwardsCompatibleGrid.jsx
|
|
38176
38176
|
const BackwardsCompatibleGrid = forwardRef((props, ref) => {
|
|
38177
|
-
const { gridBarTitle, queryId, gridId, primaryActionOnClick, primaryActionLabel, primaryActionIcon, defaultSearchObject, renderConfigs, disableGridPersistance, enableCheckboxOnColumns } = props;
|
|
38177
|
+
const { gridBarTitle, queryId, gridId, primaryActionOnClick, primaryActionLabel, primaryActionIcon, defaultSearchObject, renderConfigs, disableGridPersistance, enableCheckboxOnColumns, gridHeight } = props;
|
|
38178
38178
|
const [exportSidesheetOpen, setExportSidesheetOpen] = useState(false);
|
|
38179
38179
|
const gridRef = useRef(null);
|
|
38180
38180
|
const fullDefaultSearchObject = useMemo(() => {
|
|
@@ -38247,7 +38247,7 @@ const BackwardsCompatibleGrid = forwardRef((props, ref) => {
|
|
|
38247
38247
|
gridId,
|
|
38248
38248
|
defaultSearchObject: fullDefaultSearchObject,
|
|
38249
38249
|
columnDefOverrides: columnOverrides,
|
|
38250
|
-
gridHeight
|
|
38250
|
+
gridHeight,
|
|
38251
38251
|
gridOptions: {
|
|
38252
38252
|
pagination: true,
|
|
38253
38253
|
rowSelection: enableCheckboxOnColumns && {
|