post review fixes

This commit is contained in:
Krzysztof Dukszta-Kwiatkowski
2023-05-25 15:13:21 +02:00
committed by Ali BARIN
parent 3f8f022d48
commit 6e80ff4eb6
37 changed files with 94 additions and 75 deletions

View File

@@ -0,0 +1,15 @@
import { IGlobalVariable } from '@automatisch/types';
const getBaseUrl = ($: IGlobalVariable): string => {
if ($.auth.data.instanceUrl) {
return $.auth.data.instanceUrl as string;
}
if ($.app.apiBaseUrl) {
return $.app.apiBaseUrl;
}
return $.app.baseUrl;
};
export default getBaseUrl;