zhaoyongjie commented on a change in pull request #17698: URL: https://github.com/apache/superset/pull/17698#discussion_r765503585
########## File path: superset-frontend/packages/superset-ui-core/src/color/CategoricalColorNamespace.ts ########## @@ -40,12 +40,7 @@ export default class CategoricalColorNamespace { getScale(schemeId?: string) { const id = schemeId ?? getCategoricalSchemeRegistry().getDefaultKey() ?? ''; const scheme = getCategoricalSchemeRegistry().get(id); - const newScale = new CategoricalColorScale( - scheme?.colors ?? [], - this.forcedItems, - ); - - return newScale; + return new CategoricalColorScale(scheme?.colors ?? [], this.forcedItems); Review comment: reformat -- 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