[fix]: flat() is not a function
This commit is contained in:
@@ -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
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user