From d5a0b641a4295f531c0a7c750a7236fc5e7d168d Mon Sep 17 00:00:00 2001 From: Sebastian Held Date: Sun, 28 Mar 2021 19:47:06 +0200 Subject: [PATCH] display errors --- .../Resources/public/js/Components/OctoPart/SearchPanel.js | 2 +- src/PartKeepr/OctoPartBundle/Services/OctoPartService.php | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/OctoPart/SearchPanel.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/OctoPart/SearchPanel.js index f62671cfe..ce5968761 100644 --- a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/OctoPart/SearchPanel.js +++ b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/OctoPart/SearchPanel.js @@ -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()); } diff --git a/src/PartKeepr/OctoPartBundle/Services/OctoPartService.php b/src/PartKeepr/OctoPartBundle/Services/OctoPartService.php index 81cb1ff94..0343735e0 100644 --- a/src/PartKeepr/OctoPartBundle/Services/OctoPartService.php +++ b/src/PartKeepr/OctoPartBundle/Services/OctoPartService.php @@ -55,9 +55,6 @@ class OctoPartService credit_string text } - cad { - add_to_library_url - } reference_designs { name url @@ -137,9 +134,6 @@ class OctoPartService credit_string text } - cad { - add_to_library_url - } reference_designs { name url