Skip to content

Commit

Permalink
increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
nbelyh committed Jan 30, 2023
1 parent 861808a commit 928aa10
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added docs/DiagramFrameWebPart.pptx
Binary file not shown.
2 changes: 1 addition & 1 deletion src/WebPart/TopFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export function TopFrame(props: ITopFrameProps) {

if (newPageNameOrDefault && (oldPageNameOrDefault !== newPageNameOrDefault || force)) {
if (reloaded) { // Visio bug (hanging) on immediate page change with logo screen, timeout seems to help a bit
setTimeout(() => setPage(newPageNameOrDefault), 750);
setTimeout(() => setPage(newPageNameOrDefault), 1000);
} else {
await setPage(newPageNameOrDefault);
}
Expand Down
2 changes: 1 addition & 1 deletion src/WebPart/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { WebPartContext } from '@microsoft/sp-webpart-base';

export class Utils {

static async doWithRetry(fn: () => Promise<any>, retries = 3, timeout = 750) {
static async doWithRetry(fn: () => Promise<any>, retries = 3, timeout = 1000) {
let retry = 0;
for (;;) {
try {
Expand Down

0 comments on commit 928aa10

Please sign in to comment.