mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
removed forceRefetch logic
This commit is contained in:
@@ -198,14 +198,14 @@ export function ControlBar() {
|
||||
* Fetches the deployed state of the workflow from the server
|
||||
* This is the single source of truth for deployed workflow state
|
||||
*/
|
||||
const fetchDeployedState = async (options = { forceRefetch: false }) => {
|
||||
const fetchDeployedState = async () => {
|
||||
if (!activeWorkflowId) {
|
||||
setDeployedState(null)
|
||||
return
|
||||
}
|
||||
|
||||
// Skip fetching if not deployed unless forcing a refetch
|
||||
if (!isDeployed && !options.forceRefetch) {
|
||||
// Skip fetching if not deployed
|
||||
if (!isDeployed) {
|
||||
setDeployedState(null)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user