@gisce/react-ooui 1.0.22 → 1.0.23
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/package.json
CHANGED
|
@@ -95,9 +95,9 @@ const ContentRootProvider = (
|
|
|
95
95
|
return;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
const { ids
|
|
98
|
+
const { ids } = datas || {};
|
|
99
99
|
|
|
100
|
-
let idsToExecute = ids;
|
|
100
|
+
let idsToExecute = ids || [];
|
|
101
101
|
|
|
102
102
|
const reportContextParsed =
|
|
103
103
|
typeof reportContext === "string"
|
|
@@ -108,23 +108,6 @@ const ContentRootProvider = (
|
|
|
108
108
|
})
|
|
109
109
|
: reportContext;
|
|
110
110
|
|
|
111
|
-
if (!idsToExecute) {
|
|
112
|
-
const results = await ConnectionProvider.getHandler().searchAllIds({
|
|
113
|
-
params: [],
|
|
114
|
-
model: datasource.model || model,
|
|
115
|
-
totalItems: 1,
|
|
116
|
-
context: { ...context, ...reportContextParsed },
|
|
117
|
-
});
|
|
118
|
-
|
|
119
|
-
if (results.length === 0) {
|
|
120
|
-
showErrorDialog("Nothing to print");
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
idsToExecute = results;
|
|
125
|
-
datas.id = results[0];
|
|
126
|
-
}
|
|
127
|
-
|
|
128
111
|
try {
|
|
129
112
|
const newReportId = await ConnectionProvider.getHandler().createReport({
|
|
130
113
|
model,
|