diff --git a/starsky/starsky/clientapp/src/components/molecules/force-sync-wait-button/force-sync-wait-button.tsx b/starsky/starsky/clientapp/src/components/molecules/force-sync-wait-button/force-sync-wait-button.tsx
index 59b51e2693..e99c9a16dc 100644
--- a/starsky/starsky/clientapp/src/components/molecules/force-sync-wait-button/force-sync-wait-button.tsx
+++ b/starsky/starsky/clientapp/src/components/molecules/force-sync-wait-button/force-sync-wait-button.tsx
@@ -55,7 +55,7 @@ const ForceSyncWaitButton: React.FunctionComponent<
ForceSyncWaitButtonPropTypes
> = ({ propsParentFolder, historyLocationSearch, callback, dispatch }) => {
function forceSync(): Promise
{
- const parentFolder = propsParentFolder ? propsParentFolder : "/";
+ const parentFolder = propsParentFolder ?? "/";
setIsLoading(true);
new FileListCache().CacheCleanEverything();
diff --git a/starsky/starsky/clientapp/src/components/organisms/modal-archive-synchronize-manually/modal-archive-synchronize-manually.tsx b/starsky/starsky/clientapp/src/components/organisms/modal-archive-synchronize-manually/modal-archive-synchronize-manually.tsx
index 538472fc42..f6be9712a2 100644
--- a/starsky/starsky/clientapp/src/components/organisms/modal-archive-synchronize-manually/modal-archive-synchronize-manually.tsx
+++ b/starsky/starsky/clientapp/src/components/organisms/modal-archive-synchronize-manually/modal-archive-synchronize-manually.tsx
@@ -79,7 +79,7 @@ const ModalArchiveSynchronizeManually: React.FunctionComponent<
function removeCache() {
setIsLoading(true);
new FileListCache().CacheCleanEverything();
- const parentFolder = props.parentFolder ? props.parentFolder : "/";
+ const parentFolder = props.parentFolder ?? "/";
FetchGet(
new UrlQuery().UrlRemoveCache(new URLPath().encodeURI(parentFolder))
).then((_) => {
@@ -106,7 +106,7 @@ const ModalArchiveSynchronizeManually: React.FunctionComponent<
const [geoSyncPercentage, setGeoSyncPercentage] = useState(0);
function geoSync() {
- const parentFolder = props.parentFolder ? props.parentFolder : "/";
+ const parentFolder = props.parentFolder ?? "/";
const bodyParams = new URLSearchParams();
bodyParams.set("f", parentFolder);
@@ -116,7 +116,7 @@ const ModalArchiveSynchronizeManually: React.FunctionComponent<
}
function fetchGeoSyncStatus() {
- const parentFolder = props.parentFolder ? props.parentFolder : "/";
+ const parentFolder = props.parentFolder ?? "/";
FetchGet(
new UrlQuery().UrlGeoStatus(new URLPath().encodeURI(parentFolder))
).then((anyData) => {
@@ -136,7 +136,7 @@ const ModalArchiveSynchronizeManually: React.FunctionComponent<
useInterval(() => fetchGeoSyncStatus(), 10000);
function manualThumbnailSync() {
- const parentFolder = props.parentFolder ? props.parentFolder : "/";
+ const parentFolder = props.parentFolder ?? "/";
const bodyParams = new URLSearchParams();
bodyParams.set("f", parentFolder);
setIsLoading(true);
@@ -144,7 +144,7 @@ const ModalArchiveSynchronizeManually: React.FunctionComponent<
FetchPost(
new UrlQuery().UrlThumbnailGeneration(),
bodyParams.toString()
- ).then((anyData) => {
+ ).then((_) => {
setTimeout(() => {
setIsLoading(false);
props.handleExit();
diff --git a/starsky/starsky/clientapp/src/components/organisms/preferences-app-settings/preferences-app-settings.tsx b/starsky/starsky/clientapp/src/components/organisms/preferences-app-settings/preferences-app-settings.tsx
index 74c504417d..f0191a6261 100644
--- a/starsky/starsky/clientapp/src/components/organisms/preferences-app-settings/preferences-app-settings.tsx
+++ b/starsky/starsky/clientapp/src/components/organisms/preferences-app-settings/preferences-app-settings.tsx
@@ -45,7 +45,7 @@ export const PreferencesAppSettings: React.FunctionComponent = (_) => {
async function changeSetting(value: string, name?: string): Promise {
const bodyParams = new URLSearchParams();
- bodyParams.set(name ? name : "", value);
+ bodyParams.set(name ?? "", value);
const result = await FetchPost(
new UrlQuery().UrlApiAppSettings(),
bodyParams.toString()