[ARVADOS-WORKBENCH2] updated: 1.1.4-560-g1d7e948
Git user
git at public.curoverse.com
Tue Aug 7 08:01:35 EDT 2018
Summary of changes:
src/store/data-explorer/data-explorer-middleware.ts | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
via 1d7e948049f9fb2a04a9a5a19f8c3e4964f16ef3 (commit)
from 40952ad86a823635968c9abc5d6feacef316cffd (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 1d7e948049f9fb2a04a9a5a19f8c3e4964f16ef3
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date: Tue Aug 7 14:01:30 2018 +0200
Fix data explorer changing pages and other actions
No issue #
Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>
diff --git a/src/store/data-explorer/data-explorer-middleware.ts b/src/store/data-explorer/data-explorer-middleware.ts
index 146867c..3491862 100644
--- a/src/store/data-explorer/data-explorer-middleware.ts
+++ b/src/store/data-explorer/data-explorer-middleware.ts
@@ -8,15 +8,16 @@ import { dataExplorerActions, bindDataExplorerActions } from "./data-explorer-ac
import { DataExplorerMiddlewareService } from "./data-explorer-middleware-service";
export const dataExplorerMiddleware = (service: DataExplorerMiddlewareService): Middleware => api => next => {
- const handleAction = <T extends { id: string }>(handler: (data: T) => void) =>
- (data: T) => {
- if (data.id === service.getId()) {
- handler(data);
- }
- };
const actions = bindDataExplorerActions(service.getId());
return action => {
+ const handleAction = <T extends { id: string }>(handler: (data: T) => void) =>
+ (data: T) => {
+ next(action);
+ if (data.id === service.getId()) {
+ handler(data);
+ }
+ };
dataExplorerActions.match(action, {
SET_PAGE: handleAction(() => {
api.dispatch(actions.REQUEST_ITEMS());
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list