File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/components/pages/settings/parts/SettingsGenerators Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -104,14 +104,12 @@ export default function GeneratorButton({
104104 ) ;
105105
106106 const { data : tokenData , isLoading, error } = useSWR < Response [ '/api/user/token' ] > ( '/api/user/token' ) ;
107- const { data : settingsData } = useSWR < Response [ '/api/server/settings ' ] > ( '/api/server/settings ' ) ;
107+ const { data : settingsData } = useSWR < Response [ '/api/server/public ' ] > ( '/api/server/public ' ) ;
108108
109109 const isUnixLike = name === 'Flameshot' || name === 'Shell Script' ;
110110 const onlyFile = generatorType === 'file' ;
111111
112- const domains = Array . isArray ( settingsData ?. settings . domains )
113- ? settingsData ?. settings . domains . map ( ( d ) => String ( d ) )
114- : [ ] ;
112+ const domains = Array . isArray ( settingsData ?. domains ) ? settingsData ?. domains . map ( ( d ) => String ( d ) ) : [ ] ;
115113 const domainOptions = [
116114 { value : '' , label : 'Default Domain' } ,
117115 ...domains . map ( ( domain ) => ( {
You can’t perform that action at this time.
0 commit comments