File tree Expand file tree Collapse file tree 4 files changed +13
-2
lines changed
GeneralSettings/CustomQueries Expand file tree Collapse file tree 4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
1
+ docker build -t flame:dev -f .docker/Dockerfile .
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ export const CustomQueries = (): JSX.Element => {
65
65
</ Modal >
66
66
67
67
< section >
68
- { customQueries . length && (
68
+ { customQueries . length ? (
69
69
< CompactTable headers = { [ 'Name' , 'Prefix' , 'Actions' ] } >
70
70
{ customQueries . map ( ( q : Query , idx ) => (
71
71
< Fragment key = { idx } >
@@ -82,6 +82,8 @@ export const CustomQueries = (): JSX.Element => {
82
82
</ Fragment >
83
83
) ) }
84
84
</ CompactTable >
85
+ ) : (
86
+ < > </ >
85
87
) }
86
88
87
89
< Button
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ interface Props {
23
23
export const ThemeBuilder = ( { themes } : Props ) : JSX . Element => {
24
24
const {
25
25
auth : { isAuthenticated } ,
26
- theme : { themeInEdit } ,
26
+ theme : { themeInEdit, userThemes } ,
27
27
} = useSelector ( ( state : State ) => state ) ;
28
28
29
29
const { editTheme } = bindActionCreators ( actionCreators , useDispatch ( ) ) ;
@@ -38,6 +38,13 @@ export const ThemeBuilder = ({ themes }: Props): JSX.Element => {
38
38
}
39
39
} , [ themeInEdit ] ) ;
40
40
41
+ useEffect ( ( ) => {
42
+ if ( isInEdit && ! userThemes . length ) {
43
+ toggleIsInEdit ( false ) ;
44
+ toggleShowModal ( false ) ;
45
+ }
46
+ } , [ userThemes ] ) ;
47
+
41
48
return (
42
49
< div className = { classes . ThemeBuilder } >
43
50
{ /* MODALS */ }
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export const weatherSettingsTemplate: WeatherForm = {
33
33
export const generalSettingsTemplate : GeneralForm = {
34
34
searchSameTab : false ,
35
35
defaultSearchProvider : 'l' ,
36
+ secondarySearchProvider : 'd' ,
36
37
pinAppsByDefault : true ,
37
38
pinCategoriesByDefault : true ,
38
39
useOrdering : 'createdAt' ,
You can’t perform that action at this time.
0 commit comments