feat: Add selected city functional with some debugging
				
					
				
			This commit is contained in:
		| @@ -45,15 +45,6 @@ export class ThreeViewErrorBoundary extends Component<Props, State> { | ||||
|  | ||||
|       // Сбрасываем ошибку только если изменился ID медиа (пользователь выбрал другую модель) | ||||
|       if (oldMediaId !== newMediaId) { | ||||
|         console.log( | ||||
|           "🔄 ThreeViewErrorBoundary: Сброс ошибки при смене модели", | ||||
|           { | ||||
|             oldKey: state.lastResetKey, | ||||
|             newKey: props.resetKey, | ||||
|             oldMediaId, | ||||
|             newMediaId, | ||||
|           } | ||||
|         ); | ||||
|         return { | ||||
|           hasError: false, | ||||
|           error: null, | ||||
| @@ -63,13 +54,7 @@ export class ThreeViewErrorBoundary extends Component<Props, State> { | ||||
|  | ||||
|       // Если изменился только счетчик (нажата кнопка "Попробовать снова"), обновляем lastResetKey | ||||
|       // но не сбрасываем ошибку автоматически - ждем результата загрузки | ||||
|       console.log( | ||||
|         "🔄 ThreeViewErrorBoundary: Обновление lastResetKey без сброса ошибки", | ||||
|         { | ||||
|           oldKey: state.lastResetKey, | ||||
|           newKey: props.resetKey, | ||||
|         } | ||||
|       ); | ||||
|  | ||||
|       return { | ||||
|         lastResetKey: props.resetKey, | ||||
|       }; | ||||
| @@ -142,10 +127,6 @@ export class ThreeViewErrorBoundary extends Component<Props, State> { | ||||
|   }; | ||||
|  | ||||
|   handleReset = () => { | ||||
|     console.log( | ||||
|       "🔄 ThreeViewErrorBoundary: Перезагрузка компонента и перезапрос модели" | ||||
|     ); | ||||
|  | ||||
|     // Сначала сбрасываем состояние ошибки | ||||
|     this.setState( | ||||
|       { | ||||
| @@ -161,7 +142,6 @@ export class ThreeViewErrorBoundary extends Component<Props, State> { | ||||
|   }; | ||||
|  | ||||
|   handleClose = () => { | ||||
|     console.log("❌ ThreeViewErrorBoundary: Закрытие ошибки"); | ||||
|     this.setState({ | ||||
|       hasError: false, | ||||
|       error: null, | ||||
| @@ -237,9 +217,6 @@ export class ThreeViewErrorBoundary extends Component<Props, State> { | ||||
|                 variant="contained" | ||||
|                 startIcon={<RefreshCw size={16} />} | ||||
|                 onClick={() => { | ||||
|                   console.log( | ||||
|                     "🖱️ ThreeViewErrorBoundary: Клик на кнопку 'Попробовать снова'" | ||||
|                   ); | ||||
|                   this.handleReset(); | ||||
|                 }} | ||||
|                 sx={{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user