Add key field to RoomNode
This commit is contained in:
parent
1fe1dbe92d
commit
09899f1c38
|
|
@ -156,7 +156,7 @@ describe('The Room Page', () => {
|
|||
MeQuery,
|
||||
RoomsQuery() {
|
||||
return {
|
||||
rooms
|
||||
rooms,
|
||||
};
|
||||
},
|
||||
RoomEntriesQuery: {
|
||||
|
|
|
|||
|
|
@ -22,6 +22,9 @@ const typePolicies = {
|
|||
InstrumentNode: {
|
||||
keyFields: ['slug']
|
||||
},
|
||||
RoomNode: {
|
||||
keyFields: ['slug']
|
||||
},
|
||||
ModuleNode: {
|
||||
fields: {
|
||||
inEditMode: {
|
||||
|
|
|
|||
|
|
@ -95,6 +95,7 @@ function networkErrorCallback(statusCode) {
|
|||
router.beforeEach(async (to, from, next) => {
|
||||
Vue.$log.debug('navigation guard called', to, from);
|
||||
if (to.path === '/logout') {
|
||||
Vue.$log.debug('logout', to);
|
||||
publicApolloClient.resetStore();
|
||||
if (process.env.LOGOUT_REDIRECT_URL) {
|
||||
location.replace(`https://sso.hep-verlag.ch/logout?return_to=${process.env.LOGOUT_REDIRECT_URL}`);
|
||||
|
|
|
|||
Loading…
Reference in New Issue