ywana-core8 0.0.777 → 0.0.779
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.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/incubator/task.js +2 -4
package/package.json
CHANGED
package/src/incubator/task.js
CHANGED
@@ -38,8 +38,8 @@ export const TaskContextProvider = (props) => {
|
|
38
38
|
|
39
39
|
async function createTask(task, listener) {
|
40
40
|
try {
|
41
|
-
const
|
42
|
-
if (listener) addListener(
|
41
|
+
const response = await API.create(task);
|
42
|
+
if (listener) addListener(response.id, listener)
|
43
43
|
return response;
|
44
44
|
} catch (error) {
|
45
45
|
console.log("createTask error", error);
|
@@ -172,8 +172,6 @@ export const TaskMonitor = (props) => {
|
|
172
172
|
refresh()
|
173
173
|
}
|
174
174
|
|
175
|
-
if (!tasks.length) return null
|
176
|
-
|
177
175
|
const table = {
|
178
176
|
columns: [
|
179
177
|
{ id: "state", label: "Estado" },
|