Skip to content

Commit

Permalink
display errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sibbi77 committed Mar 28, 2021
1 parent c6323d5 commit d5a0b64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Ext.define("PartKeepr.Components.OctoPart.SearchPanel", {
},
checkForErrors: function (data)
{
if (data.results.length == 0 && data.errors && data.errors.length > 0) {
if (data.errors && data.errors.length > 0) {
Ext.Msg.alert(i18n("Octopart Error"), data.errors.map(e => e.message).join());
}

Expand Down
6 changes: 0 additions & 6 deletions src/PartKeepr/OctoPartBundle/Services/OctoPartService.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ class OctoPartService
credit_string
text
}
cad {
add_to_library_url
}
reference_designs {
name
url
Expand Down Expand Up @@ -137,9 +134,6 @@ class OctoPartService
credit_string
text
}
cad {
add_to_library_url
}
reference_designs {
name
url
Expand Down

0 comments on commit d5a0b64

Please sign in to comment.