touchstudy-core 0.1.28 → 0.1.30
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.modern.js
CHANGED
@@ -9920,8 +9920,9 @@ var useCreateQuestionDialog = function useCreateQuestionDialog() {
|
|
9920
9920
|
})).then(function () {
|
9921
9921
|
toggleDialog();
|
9922
9922
|
});
|
9923
|
-
}, function () {
|
9924
|
-
|
9923
|
+
}, function (error) {
|
9924
|
+
var _error$response, _error$response$data;
|
9925
|
+
toast.error((error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.title) || "Fail to Create Question!");
|
9925
9926
|
});
|
9926
9927
|
return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
|
9927
9928
|
} catch (e) {
|
@@ -10752,8 +10753,9 @@ var useCreateQuestionDialog$1 = function useCreateQuestionDialog() {
|
|
10752
10753
|
})).then(function () {
|
10753
10754
|
toggleDialog();
|
10754
10755
|
});
|
10755
|
-
}, function () {
|
10756
|
-
|
10756
|
+
}, function (error) {
|
10757
|
+
var _error$response, _error$response$data;
|
10758
|
+
toast.error((error === null || error === void 0 ? void 0 : (_error$response = error.response) === null || _error$response === void 0 ? void 0 : (_error$response$data = _error$response.data) === null || _error$response$data === void 0 ? void 0 : _error$response$data.title) || "Fail to Create Question!");
|
10757
10759
|
});
|
10758
10760
|
return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
|
10759
10761
|
} catch (e) {
|