jclib-ui 1.0.291 → 1.0.292
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/jclib-ui.es.js
CHANGED
|
@@ -5850,8 +5850,8 @@ function useApi(initialConfig = {}) {
|
|
|
5850
5850
|
}
|
|
5851
5851
|
case 401: {
|
|
5852
5852
|
response.message = "Servidor requer autenticação!";
|
|
5853
|
-
if (globalApiConfig.setToken) {
|
|
5854
|
-
globalApiConfig.setToken("");
|
|
5853
|
+
if (globalApiConfig == null ? void 0 : globalApiConfig.setToken) {
|
|
5854
|
+
globalApiConfig == null ? void 0 : globalApiConfig.setToken("");
|
|
5855
5855
|
}
|
|
5856
5856
|
history.push(globalApiConfig.loginRoute);
|
|
5857
5857
|
break;
|