@@ -214,7 +215,7 @@
+
+ Change page:
+
+
+ mdi-keyboard-return
+
+
+
@@ -655,7 +673,7 @@ export default {
const {row: rowObj, rowMeta} = this.data[row];
if (rowMeta.new) {
try {
- const pks =this.availableColumns.filter((col) => {
+ const pks = this.availableColumns.filter((col) => {
return col.pk;
});
if (this.availableColumns.every((col) => {
diff --git a/packages/nc-gui/plugins/axiosInterceptor.js b/packages/nc-gui/plugins/axiosInterceptor.js
index 6ba2393437..f0739af124 100644
--- a/packages/nc-gui/plugins/axiosInterceptor.js
+++ b/packages/nc-gui/plugins/axiosInterceptor.js
@@ -33,14 +33,14 @@ export default ({store, $axios, redirect, $toast}) => {
}
// Return any error which is not due to authentication back to the calling service
- if (error.response && error.response.status !== 401) {
+ if (!error.response || error.response.status !== 401) {
return new Promise((resolve, reject) => {
reject(error);
});
}
// Logout user if token refresh didn't work or user is disabled
- if (error.config.url == '/api/v1/auth/refresh-token') {
+ if (error.config.url == '/api/v1/auth/refresh-token' ) {
store.dispatch('users/ActSignOut')