File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed
src/components/common/SidePanel Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"homepage" : " /dashboard" ,
6
6
"dependencies" : {
7
- "@devtron-labs/devtron-fe-common-lib" : " 1.17.0-pre-6 " ,
7
+ "@devtron-labs/devtron-fe-common-lib" : " 1.17.0-pre-7 " ,
8
8
"@esbuild-plugins/node-globals-polyfill" : " 0.2.3" ,
9
9
"@rjsf/core" : " ^5.13.3" ,
10
10
"@rjsf/utils" : " ^5.13.3" ,
Original file line number Diff line number Diff line change 1
- import { PropsWithChildren } from 'react'
1
+ import { PropsWithChildren , useEffect , useState } from 'react'
2
2
import { createPortal } from 'react-dom'
3
3
4
4
import { logExceptionToSentry } from '@devtron-labs/devtron-fe-common-lib'
5
5
6
6
export const SidePanelHeaderActions = ( { children } : PropsWithChildren < { } > ) => {
7
+ const [ hasComponentRenderedOnce , setHasComponentRenderedOnce ] = useState ( false )
8
+
9
+ useEffect ( ( ) => {
10
+ setHasComponentRenderedOnce ( true )
11
+ } , [ ] )
12
+
13
+ if ( ! hasComponentRenderedOnce ) {
14
+ return null
15
+ }
16
+
7
17
const targetElement = document . getElementById ( 'devtron-side-panel-actions' )
8
18
9
19
if ( ! targetElement ) {
Original file line number Diff line number Diff line change @@ -1722,9 +1722,9 @@ __metadata:
1722
1722
languageName : node
1723
1723
linkType : hard
1724
1724
1725
- " @devtron-labs/devtron-fe-common-lib@npm:1.17.0-pre-6 " :
1726
- version : 1.17.0-pre-6
1727
- resolution : " @devtron-labs/devtron-fe-common-lib@npm:1.17.0-pre-6 "
1725
+ " @devtron-labs/devtron-fe-common-lib@npm:1.17.0-pre-7 " :
1726
+ version : 1.17.0-pre-7
1727
+ resolution : " @devtron-labs/devtron-fe-common-lib@npm:1.17.0-pre-7 "
1728
1728
dependencies :
1729
1729
" @codemirror/autocomplete " : " npm:6.18.6"
1730
1730
" @codemirror/lang-json " : " npm:6.0.1"
@@ -1773,7 +1773,7 @@ __metadata:
1773
1773
react-select : 5.8.0
1774
1774
rxjs : ^7.8.1
1775
1775
yaml : ^2.4.1
1776
- checksum : 10c0/d5f1a6536e6d6b8fbfd18d85a80c76c8effdbc9a6b17b20dfe783a0c8a6f831618aae6826d717098736b8205826372753cdb762fe374a9e6c1b8bfdfd9c3c004
1776
+ checksum : 10c0/aba53011d74931fdcc88239bcd648bfb0b12034637f910a9242c28db5e7267347c2f8f94e7d4f36766de1f0a61be4188a301148c59c37694623a7e8c7db2519b
1777
1777
languageName : node
1778
1778
linkType : hard
1779
1779
@@ -5685,7 +5685,7 @@ __metadata:
5685
5685
version : 0.0.0-use.local
5686
5686
resolution : " dashboard@workspace:."
5687
5687
dependencies :
5688
- " @devtron-labs/devtron-fe-common-lib " : " npm:1.17.0-pre-6 "
5688
+ " @devtron-labs/devtron-fe-common-lib " : " npm:1.17.0-pre-7 "
5689
5689
" @esbuild-plugins/node-globals-polyfill " : " npm:0.2.3"
5690
5690
" @playwright/test " : " npm:^1.32.1"
5691
5691
" @rjsf/core " : " npm:^5.13.3"
You can’t perform that action at this time.
0 commit comments