File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
src/features/Firewalls/FirewallDetail/Devices Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @linode/manager " : Fixed
3+ ---
4+
5+ Fix logic to remove linode interface from firewall's device page ([ #13238 ] ( https://github.com/linode/manager/pull/13238 ) )
Original file line number Diff line number Diff line change @@ -181,9 +181,12 @@ export const FirewallDeviceTable = React.memo(
181181 disabled = { disabled }
182182 handleRemoveDevice = { handleRemoveDevice }
183183 isLinodeRelatedDevice = { isLinodeRelatedDevice }
184- isLinodeUpdatable = { updatableLinodes ?. some (
185- ( linode ) => linode . id === thisDevice . entity . id
186- ) }
184+ isLinodeUpdatable = { updatableLinodes ?. some ( ( linode ) => {
185+ if ( thisDevice . entity . type === 'linode_interface' ) {
186+ return linode . id === thisDevice . entity . parent_entity ?. id ;
187+ }
188+ return linode . id === thisDevice . entity . id ;
189+ } ) }
187190 isNodebalancerUpdatable = { updatableNodebalancers ?. some (
188191 ( nodebalancer ) => nodebalancer . id === thisDevice . entity . id
189192 ) }
You can’t perform that action at this time.
0 commit comments