Skip to content

Commit 26d6395

Browse files
committed
style: format storage handler for readability
1 parent 0a802d9 commit 26d6395

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • packages/builder/src/pages/builder/workspace/detached-properties

packages/builder/src/pages/builder/workspace/detached-properties/index.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,14 @@
219219
storageHandler = (ev: StorageEvent) => {
220220
// Extract appId from storage key to validate it's for this app
221221
const keyPrefix = `budibase.detached.sync.${storageAppId}.`
222-
if (!storageAppId || !ev.key?.startsWith(keyPrefix) || !ev.newValue) return
222+
if (!storageAppId || !ev.key?.startsWith(keyPrefix) || !ev.newValue)
223+
return
223224
try {
224225
const parsed = JSON.parse(ev.newValue)
225226
// Validate the key matches the app and screen from the payload
226227
const expectedKey = `budibase.detached.sync.${storageAppId}.${parsed.screenId}`
227228
if (ev.key !== expectedKey) return
228-
229+
229230
if (parsed.componentId) {
230231
componentId = parsed.componentId
231232
// Selection triggered by another window; suppress outgoing notify

0 commit comments

Comments
 (0)