Plugin Directory

Changeset 2702844


Ignore:
Timestamp:
03/31/2022 05:02:32 PM (4 years ago)
Author:
ascendedcrow
Message:

Hotfix: Check bol_info empty

File:
1 edited

Legend:

Unmodified
Added
Removed
  • shop-2-api/trunk/assets/bol2api_dashboard.js

    r2696481 r2702844  
    157157    // This will populate the text boxes (BOL)
    158158    function populate_api_information_bol() {
    159         if (settings.bol_info) {
     159        if (settings.bol_info  && settings.bol_info.length > 0) {
    160160            $("#bol-client-id").val(settings.bol_info[0].client_id);
    161161            $("#bol-client-secret").val(settings.bol_info[0].client_secret);
Note: See TracChangeset for help on using the changeset viewer.