Skip to content

Commit 794778d

Browse files
committed
fix: dev-center undefined error
I uploaded a video for this one but just realized I never made a commit for it - it was hiding in my git stash. So here will be a rare situation that the video link is able to be placed inside the commit message: https://youtu.be/8XiFR1o5Vuk
1 parent eda376b commit 794778d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/dev-center/js/dev-center.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,16 +2259,20 @@ $(document).on('click', '.insta-deploy-app-selector', function (e) {
22592259
$(document).on('click', '.insta-deploy-existing-app-deploy-btn', function (e) {
22602260
$('.insta-deploy-existing-app-deploy-btn').addClass('disabled');
22612261
$('.insta-deploy-existing-app-select')?.get(0)?.close();
2262+
2263+
const app_item = $('.insta-deploy-app-selector.active');
2264+
22622265
// load the 'App Settings' section
2263-
edit_app_section($('.insta-deploy-app-selector.active').attr('data-name'));
2266+
edit_app_section(app_item.attr('data-name'));
22642267

22652268
$('.drop-area').removeClass('drop-area-hover');
22662269
$('.drop-area').addClass('drop-area-ready-to-deploy');
22672270
let drop_area_content = `<p style="margin-bottom:0; font-weight: 500;">Ready to deploy 🚀</p><p class="reset-deploy"><span>Cancel</span></p>`;
22682271
$('.drop-area').html(drop_area_content);
22692272

22702273
// deploy
2271-
deploy({ uid: $(e.target).attr('data-uid') }, source_path ?? dropped_items);
2274+
console.log('data uid is present?', $(e.target).attr('data-uid'), app_item.attr('data-uid'));
2275+
deploy({ uid: app_item.attr('data-uid') }, source_path ?? dropped_items);
22722276
$('.insta-deploy-existing-app-list').html('');
22732277
})
22742278

0 commit comments

Comments
 (0)