diff --git a/src/servers/services/provideServices.ts b/src/servers/services/provideServices.ts index d8d6b2a0..5dd8327e 100644 --- a/src/servers/services/provideServices.ts +++ b/src/servers/services/provideServices.ts @@ -30,7 +30,8 @@ const provideServices = (bottle: Bottle, connect: ConnectDecorator) => { 'useStateFlagTimeout', 'ManageServersRow', ); - bottle.decorator('ManageServers', connect([ 'servers' ])); + bottle.decorator('ManageServers', withoutSelectedServer); + bottle.decorator('ManageServers', connect([ 'selectedServer', 'servers' ], [ 'resetSelectedServer' ])); bottle.serviceFactory('ManageServersRow', ManageServersRow, 'ManageServersRowDropdown'); @@ -42,7 +43,8 @@ const provideServices = (bottle: Bottle, connect: ConnectDecorator) => { bottle.decorator('CreateServer', connect([ 'selectedServer', 'servers' ], [ 'createServer', 'resetSelectedServer' ])); bottle.serviceFactory('EditServer', EditServer, 'ServerError'); - bottle.decorator('EditServer', connect([ 'selectedServer' ], [ 'editServer', 'selectServer' ])); + bottle.decorator('EditServer', withoutSelectedServer); + bottle.decorator('EditServer', connect([ 'selectedServer' ], [ 'editServer', 'selectServer', 'resetSelectedServer' ])); bottle.serviceFactory('ServersDropdown', () => ServersDropdown); bottle.decorator('ServersDropdown', connect([ 'servers', 'selectedServer' ]));