From 7310fbe23fc4418b6a7d326b90086e6e8a64e957 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Wed, 22 Nov 2023 19:01:13 +0800 Subject: [PATCH] Auto Submit --- p__Graduations__Lists__Topics__index.async.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/p__Graduations__Lists__Topics__index.async.js b/p__Graduations__Lists__Topics__index.async.js index 214303b1ec..41680618ed 100644 --- a/p__Graduations__Lists__Topics__index.async.js +++ b/p__Graduations__Lists__Topics__index.async.js @@ -4786,6 +4786,7 @@ var Page = function Page(_ref) { var isCreate, res, _res$data, + teacher_ids, _args3 = arguments; return regeneratorRuntime_default()().wrap(function _callee3$(_context3) { while (1) switch (_context3.prev = _context3.next) { @@ -4817,13 +4818,17 @@ var Page = function Page(_ref) { } }); if (isCreate) { + teacher_ids = res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.filter(function (item) { + return item === null || item === void 0 ? void 0 : item.is_creator; + })) === null || _res$data === void 0 ? void 0 : _res$data.map(function (item) { + return item.id; + }); form.setFieldsValue({ - teacher_ids: res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 || (_res$data = _res$data.filter(function (item) { - return item === null || item === void 0 ? void 0 : item.is_creator; - })) === null || _res$data === void 0 ? void 0 : _res$data.map(function (item) { - return item.id; - }) + teacher_ids: teacher_ids }); + setFormValue(objectSpread2_default()(objectSpread2_default()({}, formValue), {}, { + teacher_ids: teacher_ids + })); } setTopicModal(true); case 8: