diff --git a/package.json b/package.json index 3a89f504..c2b86ebc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-data-table-component", - "version": "7.4.0", + "version": "7.4.1", "description": "A simple to use declarative react based data table", "main": "dist/index.cjs.js", "module": "dist/index.es.js", diff --git a/src/DataTable/themes.ts b/src/DataTable/themes.ts index 26ba5b41..2cc56eae 100644 --- a/src/DataTable/themes.ts +++ b/src/DataTable/themes.ts @@ -87,7 +87,7 @@ export function createTheme(name = 'default', customTheme?: T, inherit: Theme } // allow tweaking default or light themes if the theme passed in matches - defaultThemes[name] = merge(defaultThemes[inherit], customTheme || {}); + defaultThemes[name] = merge(defaultThemes[name], customTheme || {}); return defaultThemes[name]; }