Skip to content

Commit

Permalink
Merge branch 'newjitsu' into feat/newjitsu/self-hosted-revamped
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Jan 25, 2024
2 parents 735b63f + f9cbf98 commit 99c561f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webapps/console/components/SyncEditorPage/SyncEditorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import xor from "lodash/xor";
import timezones from "timezones-list";
import { useBilling } from "../Billing/BillingProvider";
import { WLink } from "../Workspace/WLink";
import { useStoreReload } from "../../lib/store";

const log = getLog("SyncEditorPage");

Expand Down Expand Up @@ -198,6 +199,7 @@ function SyncEditor({
const [catalogError, setCatalogError] = useState<any>(undefined);
const [loadingCatalog, setLoadingCatalog] = useState(true);
const [refreshCatalog, setRefreshCatalog] = useState(0);
const reloadStore = useStoreReload();

const [showCustomSchedule, setShowCustomSchedule] = useState(
syncOptions?.schedule && !scheduleOptions.find(o => o.value === syncOptions?.schedule)
Expand Down Expand Up @@ -738,6 +740,7 @@ function SyncEditor({
data: syncOptions,
},
});
await reloadStore();
router.back();
} catch (error) {
feedbackError(`Can't link destinations`, { error });
Expand Down

0 comments on commit 99c561f

Please sign in to comment.