Skip to content

Commit

Permalink
frontend: check for string first
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Nov 19, 2023
1 parent 2f11aaa commit 5b38107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/http/frontend/src/services/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
getFeatures() {
return new Promise((resolve, reject) => {
API.get('/features').then((response) => {
if (!('features' in response.data)) {
if (typeof response.data !== 'object' || !('features' in response.data)) {
return;
}
features = response.data.features;
Expand Down

0 comments on commit 5b38107

Please sign in to comment.