[fix]: flat() is not a function

This commit is contained in:
rahuldkjain
2020-09-05 20:47:39 +05:30
parent 2aa12a581b
commit da238c9084
2 changed files with 3 additions and 5 deletions
+2 -4
View File
@@ -349,10 +349,8 @@ const icons = {
const initialSkillState = {}
const skills = Object.keys(categorizedSkills)
.map(key => categorizedSkills[key].skills)
.flat()
.sort()
const skillsArray = Object.keys(categorizedSkills).map(key => categorizedSkills[key].skills);
const skills = [].concat.apply([], skillsArray).sort();
skills.forEach(skill => {
initialSkillState[skill] = false
+1 -1
View File
@@ -12,7 +12,7 @@ export default function HTML(props) {
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
{props.headComponents}
<script data-name="BMC-Widget" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="rahuldkjain" data-description="Support me on Buy me a coffee!" data-message="I know you find the tool interesting. Buy me a coffee to support the work!" data-color="#FF813F" data-position="" data-x_margin="18" data-y_margin="18"></script>
<script data-name="BMC-Widget" src="https://cdnjs.buymeacoffee.com/1.0.0/widget.prod.min.js" data-id="rahuldkjain" data-description="Support me on Buy me a coffee!" data-message="Loved the tool🚀. Buy me a coffee to support the work!" data-color="#FF813F" data-position="" data-x_margin="18" data-y_margin="18"></script>
</head>
<body {...props.bodyAttributes}>
{props.preBodyComponents}