File tree Expand file tree Collapse file tree
packages/builder/src/pages/builder/workspace/detached-properties Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments