pixiebrix-extension icon indicating copy to clipboard operation
pixiebrix-extension copied to clipboard

Google Sheet selector widget not refreshing after creating a Google configuration

Open twschiller opened this issue 1 year ago • 0 comments

Describe the bug

Google Sheet selector widget not refreshing after creating/selecting Google configuration

To Reproduce

Steps to reproduce the behavior:

  1. Click to activate a mod using Google sheets
  2. Create a new Google configuration

Actual behavior

Google Sheet selector doesn't populate after selecting the Google configuration

Expected behavior

Google Sheet selector refreshes when you select a Google configuration and/or change the Google Configuration

Workaround

  • Refresh the page

Related Code

  • https://github.com/pixiebrix/pixiebrix-extension/blob/72334200b17050bde676dbf234650f147f53ac8a/src/contrib/google/sheets/ui/SpreadsheetPickerWidget.tsx#L40-L40
  • https://github.com/pixiebrix/pixiebrix-extension/blob/72334200b17050bde676dbf234650f147f53ac8a/src/contrib/google/sheets/core/useGoogleAccount.ts#L32-L32

Discussion

  • Is useGoogleAccount still returning null after the configuration is created?

twschiller avatar Jul 05 '24 13:07 twschiller