From d6dabada2b1a614e5486d75db23fce115f2678fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Tue, 24 Feb 2026 01:10:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20[kakaotalk]=20=EC=95=8C=EB=A6=BC?= =?UTF-8?q?=ED=86=A1=20=EB=B0=9C=EC=86=A1=20=EC=8B=9C=20collectButtons=20n?= =?UTF-8?q?ull=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - at-buttons-container 요소가 알림톡 폼에 없어 null 참조 오류 발생 - container가 null이면 빈 배열 즉시 반환 --- resources/views/barobill/kakaotalk/send/index.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/views/barobill/kakaotalk/send/index.blade.php b/resources/views/barobill/kakaotalk/send/index.blade.php index 39115e41..a7323414 100644 --- a/resources/views/barobill/kakaotalk/send/index.blade.php +++ b/resources/views/barobill/kakaotalk/send/index.blade.php @@ -223,6 +223,7 @@ function addButton(prefix) { function collectButtons(prefix) { const container = document.getElementById(prefix + '-buttons-container'); const buttons = []; + if (!container) return buttons; container.querySelectorAll(':scope > div').forEach(row => { const name = row.querySelector('.btn-name')?.value; if (name) {