From ed490e47d1132933d2062a322611f53073304329 Mon Sep 17 00:00:00 2001 From: Jan Odvarko Date: Mon, 24 Apr 2017 18:41:09 +0200 Subject: [PATCH] Include all properties from Event grip (getGripPreviewItems) --- src/reps/rep-utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/reps/rep-utils.js b/src/reps/rep-utils.js index fa23f0e..115bd17 100644 --- a/src/reps/rep-utils.js +++ b/src/reps/rep-utils.js @@ -359,7 +359,9 @@ function getGripPreviewItems(grip) { // Event Grip if (grip.preview && grip.preview.target) { - return [grip.preview.target]; + let keys = Object.keys(grip.preview.properties); + let values = Object.values(grip.preview.properties); + return [grip.preview.target, ...keys, ...values]; } // RegEx Grip