kgabryje commented on code in PR #31374: URL: https://github.com/apache/superset/pull/31374#discussion_r1882412466
########## superset-frontend/src/dashboard/actions/dashboardState.js: ########## @@ -867,23 +896,24 @@ export const ensureSyncedSharedLabelsColors = const { dashboardState: { sharedLabelsColorsMustSync }, } = getState(); - const updatedMetadata = { ...metadata }; const sharedLabelsColors = enforceSharedLabelsColorsArray( metadata.shared_label_colors, ); const freshLabelsColors = getFreshSharedLabels( forceFresh ? [] : sharedLabelsColors, ); const isSharedLabelsColorsSynced = isEqual( - sharedLabelsColors, - freshLabelsColors, + sortBy(sharedLabelsColors), Review Comment: why `sortBy` instead of just `sort`? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org