Leon 1 jaar geleden
bovenliggende
commit
8dc5502b49
2 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 3 3
      src/components/input/PickerViews.tsx
  2. 1 1
      src/features/health/MainConsole.tsx

+ 3 - 3
src/components/input/PickerViews.tsx

@@ -27,9 +27,9 @@ const Component = forwardRef((props: {
     function onPickerChange(e) {
         setV(e.detail.value)
 
-        // if (props.showBtns) {
-        //     return;
-        // }
+        if (props.showBtns && !props.onDone) {
+            return;
+        }
         props.onChange(e.detail.value)
     }
 

+ 1 - 1
src/features/health/MainConsole.tsx

@@ -558,7 +558,7 @@ export default function MainConsole(props: { type: WindowType }) {
     function updateDuration(duration){
         setDurationPicker(false)
         const scenario = getScenario(health.windows,health.mode)
-        updateEventDuration(scenario.timeline[0].event_id,scenario.target.start_timestamp+duration).then(res=>{
+        updateEventDuration(scenario.timeline[0].event_id,duration).then(res=>{
             global.refreshWindow()
         })
     }