Skip to content

Commit

Permalink
display name thank you Max
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Sep 24, 2024
1 parent b808475 commit adc6990
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions api/src/opentrons/protocol_engine/state/labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,7 @@ def _add_loaded_labware(self, action: Action) -> None:

location = action.state_update.loaded_labware.new_location

display_name = None
if action.state_update.loaded_labware.display_name:
display_name = action.state_update.loaded_labware.display_name
else:
display_name = self._state.labware_by_id[
action.state_update.loaded_labware.labware_id
].displayName
display_name = action.state_update.loaded_labware.display_name

self._state.labware_by_id[
action.state_update.loaded_labware.labware_id
Expand Down

0 comments on commit adc6990

Please sign in to comment.