Skip to content

Commit

Permalink
merge fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Oct 28, 2024
1 parent 29f68be commit d9b8147
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions api/src/opentrons/protocol_engine/state/wells.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from . import update_types
from ._abstract_store import HasState, HandlesActions
from ..actions import Action
from ..actions.get_state_update import get_state_update
from ..actions.get_state_update import get_state_updates


LabwareId = str
Expand All @@ -39,8 +39,7 @@ def __init__(self) -> None:

def handle_action(self, action: Action) -> None:
"""Modify state in reaction to an action."""
state_update = get_state_update(action)
if state_update is not None:
for state_update in get_state_updates(action):
if state_update.liquid_loaded != update_types.NO_CHANGE:
self._handle_liquid_loaded_update(state_update.liquid_loaded)
if state_update.liquid_probed != update_types.NO_CHANGE:
Expand Down

0 comments on commit d9b8147

Please sign in to comment.