Skip to content

Commit

Permalink
Failing to create tag group in the tab library by turned on location …
Browse files Browse the repository at this point in the history
…tags (#1852)
  • Loading branch information
sytolk committed Jan 30, 2023
1 parent 6ceddbe commit c30d5f2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/components/dialogs/CreateTagGroupDialog.tsx
Expand Up @@ -33,7 +33,6 @@ import i18n from '-/services/i18n';
import TransparentBackground from '../TransparentBackground';
import { TS } from '-/tagspaces.namespace';
import { getLocations } from '-/reducers/locations';
import { getCurrentLocationId } from '-/reducers/app';
import DialogCloseButton from '-/components/dialogs/DialogCloseButton';
import useTheme from '@mui/styles/useTheme';
import useMediaQuery from '@mui/material/useMediaQuery';
Expand All @@ -45,7 +44,6 @@ interface Props {
createTagGroup: (tagGroup: TS.TagGroup) => void;
color: string;
textcolor: string;
currentLocationId: string | null;
locations: Array<TS.Location>;
saveTagsInLocation: boolean;
}
Expand All @@ -63,7 +61,7 @@ function CreateTagGroupDialog(props: Props) {
const disableConfirmButton = useRef<boolean>(true);
const color = useRef<string>(props.color);
const textcolor = useRef<string>(props.textcolor);
const locationId = useRef<string>(props.currentLocationId);
const locationId = useRef<string>(defaultTagGroupLocation);
// eslint-disable-next-line no-unused-vars
const [ignored, forceUpdate] = useReducer(x => x + 1, 0);

Expand Down Expand Up @@ -304,7 +302,6 @@ function CreateTagGroupDialog(props: Props) {
function mapStateToProps(state) {
return {
locations: getLocations(state),
currentLocationId: getCurrentLocationId(state),
saveTagsInLocation: state.settings.saveTagInLocation
};
}
Expand Down

0 comments on commit c30d5f2

Please sign in to comment.