From 5dcc8f6e4d0df0bf42f9044503c31d31d4d9d2da Mon Sep 17 00:00:00 2001 From: junedchhipa Date: Thu, 12 Oct 2023 21:29:05 +0530 Subject: [PATCH] add zIndex to updateSeries method --- src/modules/helpers/UpdateHelpers.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/helpers/UpdateHelpers.js b/src/modules/helpers/UpdateHelpers.js index d7ae2d0a6..e3724fa71 100644 --- a/src/modules/helpers/UpdateHelpers.js +++ b/src/modules/helpers/UpdateHelpers.js @@ -167,11 +167,12 @@ export default class UpdateHelpers { return { ...w.config.series[i], - name: s.name ? s.name : ser && ser.name, - color: s.color ? s.color : ser && ser.color, - type: s.type ? s.type : ser && ser.type, - group: s.group ? s.group : ser && ser.group, - data: s.data ? s.data : ser && ser.data, + name: s.name ? s.name : ser?.name, + color: s.color ? s.color : ser?.color, + type: s.type ? s.type : ser?.type, + group: s.group ? s.group : ser?.group, + data: s.data ? s.data : ser?.data, + zIndex: typeof s.zIndex !== 'undefined' ? s.zIndex : i, } }