File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
packages/field-plugin/src/messaging/pluginMessage/containerToPluginMessage Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export const isLoadedMessage = (data: unknown): data is LoadedMessage =>
40
40
hasKey ( data , 'userId' ) &&
41
41
( typeof data . userId === 'number' || typeof data . userId === 'undefined' ) &&
42
42
hasKey ( data , 'userPermissions' ) &&
43
+ data . userPermissions !== null &&
43
44
( typeof data . userPermissions === 'object' ||
44
45
typeof data . userPermissions === 'undefined' ) &&
45
46
hasKey ( data , 'isSpaceAdmin' ) &&
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ export const isStateMessage = (data: unknown): data is StateChangedMessage =>
40
40
hasKey ( data , 'userId' ) &&
41
41
( typeof data . userId === 'number' || typeof data . userId === 'undefined' ) &&
42
42
hasKey ( data , 'userPermissions' ) &&
43
+ data . userPermissions !== null &&
43
44
( typeof data . userPermissions === 'object' ||
44
45
typeof data . userPermissions === 'undefined' ) &&
45
46
hasKey ( data , 'isSpaceAdmin' ) &&
You can’t perform that action at this time.
0 commit comments