Skip to content

Commit ee2af89

Browse files
committed
cs
1 parent 0b6c73c commit ee2af89

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

packages/panels/resources/views/components/page/index.blade.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,12 @@ class="fi-page-main-sub-navigation-mobile-menu-render-hook-ctn"
170170
Livewire.hook('request', ({ payload, fail }) => {
171171
fail(({ status, preventDefault }) => {
172172
if (JSON.parse(payload).components.length === 1) {
173-
for (const component of JSON.parse(payload).components) {
174-
if (JSON.parse(component.snapshot).data.isFilamentNotificationsComponent) {
173+
for (const component of JSON.parse(payload)
174+
.components) {
175+
if (
176+
JSON.parse(component.snapshot).data
177+
.isFilamentNotificationsComponent
178+
) {
175179
return
176180
}
177181
}

packages/support/resources/js/sortable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ export default (Alpine) => {
2222

2323
const { item: draggedNode, to: parentNode, newIndex } = event
2424
const draggableSelector = this.options.draggable
25-
const previousNode = parentNode.querySelectorAll(draggableSelector)[newIndex - 1]
25+
const previousNode =
26+
parentNode.querySelectorAll(draggableSelector)[newIndex - 1]
2627

2728
if (previousNode) {
2829
parentNode.insertBefore(

0 commit comments

Comments
 (0)