Commit 3d2fddc
fix: add supportsGet guard to getResource
Short-circuit getResource for resource types that don't support GET
(e.g. ProductGroup, ProductApi, GatewayApi) before making a network
call. This centralizes the guard and makes pollAsyncOperation safe
for all resource types.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d6f89a9 commit 3d2fddc
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
305 | 313 | | |
306 | 314 | | |
307 | 315 | | |
| |||
0 commit comments